libnet: Correctly re-initialize the "ip_version" variable each time
[SLOF.git] / tools / Makefile
1 # *****************************************************************************
2 # * Copyright (c) 2004, 2008 IBM Corporation
3 # * All rights reserved.
4 # * This program and the accompanying materials
5 # * are made available under the terms of the BSD License
6 # * which accompanies this distribution, and is available at
7 # * http://www.opensource.org/licenses/bsd-license.php
8 # *
9 # * Contributors:
10 # * IBM Corporation - initial implementation
11 # ****************************************************************************/
12
13 include ../make.rules
14
15 TARGETS = gen_reloc_table sloffs
16 HOSTCFLAGS += -I../romfs/tools
17
18 all: $(TARGETS)
19
20 crclib.o: ../romfs/tools/crclib.c
21 $(HOSTCC) -W $(HOSTCFLAGS) -c $^ -o $@
22
23 %.o: %.c
24 $(HOSTCC) -W $(HOSTCFLAGS) -c $^
25
26 gen_reloc_table: gen_reloc_table.o
27 $(HOSTCC) $(HOSTCFLAGS) -o $@ $^
28
29 sloffs: sloffs.o crclib.o
30 $(HOSTCC) $(HOSTCFLAGS) -o $@ $^
31
32 clean_here:
33 rm -f *.o $(TARGETS)
34
35 clean: clean_here
36
37
38 distclean: clean_here