miniupnpd 1.9 (20160113)
[tomato.git] / release / src / router / prebuilt / Makefile
blob8a2e080bf4ea01bd6886a2fc9ce15fbd8f59de86
1 include ../common.mak
3 ifneq ($(wildcard $(SRCBASE)/wl/$(PLATFORM)/eapd),)
4 UTILS := wl nas eapd
5 else
6 UTILS := wl nas
7 endif
9 all: $(UTILS)
11 clean:
12 rm -f *~ $(UTILS)
14 ifneq ($(wildcard $(SRCBASE)/wl/$(PLATFORM)/wl),)
15 wl:
16 @cp -f $(SRCBASE)/wl/$(PLATFORM)/wl wl
17 else
18 wl: wl_exe.o
19 $(CC) $(CCFLAGS) -DBCMWPA2 -o $@ $<
20 endif
22 ifneq ($(wildcard $(SRCBASE)/wl/$(PLATFORM)/nas),)
23 nas:
24 @cp -f $(SRCBASE)/wl/$(PLATFORM)/nas nas
25 else
26 nas: nas_exe.o
27 $(CC) $(CCFLAGS) -DBCMWPA2 -o $@ $< -L../shared -L../nvram -lnvram -lshared
28 endif
30 ifneq ($(wildcard $(SRCBASE)/wl/$(PLATFORM)/eapd),)
31 eapd:
32 @cp -f $(SRCBASE)/wl/$(PLATFORM)/eapd eapd
33 endif
35 install: all
36 install -d $(INSTALLDIR)/usr/sbin
38 install -m 0755 nas $(INSTALLDIR)/usr/sbin/nas
39 $(STRIP) $(INSTALLDIR)/usr/sbin/nas
40 # nas4not is now a symbolic link to nas
41 ln -sf nas $(INSTALLDIR)/usr/sbin/nas4not
43 install -m 0755 wl $(INSTALLDIR)/usr/sbin/wl
44 $(STRIP) $(INSTALLDIR)/usr/sbin/wl
46 ifneq ($(wildcard $(SRCBASE)/wl/$(PLATFORM)/eapd),)
47 install -d $(INSTALLDIR)/bin
48 install -m 0755 eapd $(INSTALLDIR)/bin/eapd
49 $(STRIP) $(INSTALLDIR)/bin/eapd
50 endif