follow the stable tree, upgrade to 2.6.16.3
[openwrt.git] / openwrt / package / nvram / src / Makefile
1 # $Id$
2
3 EXTRA_CFLAGS := -c -I. -I../include
4 LIBSHARED_OBJS := shutils.o wl.o wl_linux.o defaults.o linux_timer.o
5 LIBNVRAM_OBJS := nvram_linux.o nvram_convert.o
6
7 all: libshared.so libnvram.so nvram
8
9 %.o: %.c
10 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $^
11
12 libshared.so: $(LIBSHARED_OBJS)
13 $(CC) -shared -o $@ $^
14
15 libnvram.so: $(LIBNVRAM_OBJS)
16 $(CC) -shared -o $@ $^
17
18 nvram: main.o
19 $(CC) -o $@ $^ -L. -lnvram
20
21 clean:
22 rm -f *.o *.so nvram
This page took 0.052998 seconds and 5 git commands to generate.