OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / ip-sentinel / makefile
1
2 ifdef CONFIG_USER_FLATFSD_FLATFSD
3 CONFOPTS = --with-configfile=/etc/config/ips.cfg
4 else
5 CONFOPTS = --with-configfile=/etc/ips.cfg
6 endif
7
8 all: build/Makefile
9         $(MAKE) -C build
10
11 build/Makefile: makefile
12         rm -rf build
13         mkdir build
14         ( \
15                 cd build; \
16                 CC="$(CC) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LDLIBS)" \
17                         sh ../configure $(CONFIGURE_OPTS) \
18                         --disable-dietlibc --enable-release \
19                         $(CONFOPTS) \
20                         --enable-dependency-tracking \
21                         --with-username=root \
22                         ; \
23         )
24
25 romfs:
26         $(ROMFSINST) build/src/ip-sentinel /bin/ip-sentinel
27
28 clean:
29         rm -rf build
30