Annotation of embedaddon/miniupnpd/Makefile.openwrt, revision 1.1.1.1

1.1       misho       1: # $Id: Makefile.openwrt,v 1.12 2008/05/01 23:11:18 nanard Exp $
                      2: # http://miniupnp.free.fr/
                      3: # Author : Thomas Bernard
                      4: # for use with GNU Make
                      5: # This Makefile would probably need some modifications depending on
                      6: # your openwrt SDK/etc...
                      7: # http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=713
                      8: 
                      9: #include $(TOPDIR)/rules.mk
                     10: #CFLAGS = -Wall -O -D_GNU_SOURCE -g
                     11: #CFLAGS = -Wall -Os -D_GNU_SOURCE
                     12: #CC = mipsel-linux-gcc
                     13: CC = $(TARGET_CC)
                     14: CFLAGS = $(TARGET_CFLAGS)
                     15: CFLAGS += -D_GNU_SOURCE
                     16: CP = cp
                     17: RM = rm -f
                     18: INSTALL = install
                     19: IPTABLESINC=$(STAGING_DIR)/usr/include
                     20: #IPTABLESINC=$(BUILD_DIR)/iptables-1.3.3/include
                     21: #IPTABLESINC=$(TOPDIR)/../iptables-1.3.3/include
                     22: 
                     23: BASEOBJS = miniupnpd.o upnphttp.o upnpdescgen.o upnpsoap.o \
                     24:            upnpreplyparse.o minixml.o \
                     25:                   upnpredirect.o getifaddr.o daemonize.o upnpglobalvars.o \
                     26:                   options.o upnppermissions.o minissdp.o natpmp.o
                     27: 
                     28: LNXOBJS = linux/getifstats.o
                     29: NETFILTEROBJS = netfilter/iptcrdr.o
                     30: ALLOBJS = $(BASEOBJS) $(LNXOBJS) $(NETFILTEROBJS)
                     31: 
                     32: #LIBS = $(BUILD_DIR)/iptables-1.3.3/libiptc/libiptc.a
                     33: #LIBS = $(TOPDIR)/../iptables-1.3.3/libiptc/libiptc.a
                     34: 
                     35: TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o
                     36: 
                     37: EXECUTABLES = miniupnpd testupnpdescgen
                     38: 
                     39: .PHONY:        all clean install depend
                     40: 
                     41: all:   $(EXECUTABLES)
                     42: 
                     43: clean:
                     44:        $(RM) $(BASEOBJS) $(LNXOBJS) $(NETFILTEROBJS) $(EXECUTABLES) \
                     45:        testupnpdescgen.o
                     46: 
                     47: install:       miniupnpd
                     48:        @echo no install for now...
                     49: 
                     50: miniupnpd:     $(BASEOBJS) $(LNXOBJS) $(NETFILTEROBJS) $(LIBS)
                     51: 
                     52: testupnpdescgen:       $(TESTUPNPDESCGENOBJS)
                     53: 
                     54: netfilter/iptcrdr.o: netfilter/iptcrdr.c
                     55:        $(CC) $(CFLAGS) -I$(IPTABLESINC) -c -o $@ $<
                     56: 
                     57: depend:        config.h
                     58:        makedepend -f$(MAKEFILE_LIST) -Y \
                     59:        $(ALLOBJS:.o=.c) $(TESTUPNPDESCGENOBJS:.o=.c) \
                     60:        2>/dev/null
                     61: 
                     62: config.h:      config.h.openwrt
                     63:        $(CP) $< $@
                     64: 
                     65: # DO NOT DELETE
                     66: 
                     67: miniupnpd.o: config.h upnpglobalvars.h upnppermissions.h miniupnpdtypes.h
                     68: miniupnpd.o: upnphttp.h upnpdescgen.h miniupnpdpath.h getifaddr.h daemonize.h
                     69: miniupnpd.o: upnpsoap.h options.h minissdp.h upnpredirect.h natpmp.h
                     70: upnphttp.o: upnphttp.h config.h upnpdescgen.h miniupnpdpath.h upnpsoap.h
                     71: upnpdescgen.o: upnpdescgen.h miniupnpdpath.h upnpglobalvars.h
                     72: upnpdescgen.o: upnppermissions.h config.h miniupnpdtypes.h upnpdescstrings.h
                     73: upnpsoap.o: upnpglobalvars.h upnppermissions.h config.h miniupnpdtypes.h
                     74: upnpsoap.o: upnphttp.h upnpsoap.h upnpreplyparse.h upnpredirect.h getifaddr.h
                     75: upnpsoap.o: getifstats.h
                     76: upnpreplyparse.o: upnpreplyparse.h minixml.h
                     77: minixml.o: minixml.h
                     78: upnpredirect.o: config.h upnpredirect.h upnpglobalvars.h upnppermissions.h
                     79: upnpredirect.o: miniupnpdtypes.h netfilter/iptcrdr.h commonrdr.h
                     80: getifaddr.o: getifaddr.h
                     81: daemonize.o: daemonize.h
                     82: upnpglobalvars.o: upnpglobalvars.h upnppermissions.h config.h
                     83: upnpglobalvars.o: miniupnpdtypes.h
                     84: options.o: options.h upnppermissions.h config.h upnpglobalvars.h
                     85: options.o: miniupnpdtypes.h
                     86: upnppermissions.o: config.h upnppermissions.h
                     87: minissdp.o: config.h upnpdescstrings.h miniupnpdpath.h upnphttp.h
                     88: minissdp.o: upnpglobalvars.h upnppermissions.h miniupnpdtypes.h minissdp.h
                     89: natpmp.o: config.h natpmp.h upnpglobalvars.h upnppermissions.h
                     90: natpmp.o: miniupnpdtypes.h getifaddr.h upnpredirect.h commonrdr.h
                     91: linux/getifstats.o: getifstats.h config.h
                     92: netfilter/iptcrdr.o: netfilter/iptcrdr.h commonrdr.h config.h
                     93: testupnpdescgen.o: upnpdescgen.h
                     94: upnpdescgen.o: upnpdescgen.h miniupnpdpath.h upnpglobalvars.h
                     95: upnpdescgen.o: upnppermissions.h config.h miniupnpdtypes.h upnpdescstrings.h

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>