Annotation of embedaddon/miniupnpc/Makefile.mingw, revision 1.1
1.1 ! misho 1: # $Id: Makefile.mingw,v 1.16 2011/04/18 17:39:31 nanard Exp $
! 2: # Miniupnp project.
! 3: # http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
! 4: # (c) 2005-2011 Thomas Bernard
! 5: # This Makefile is made for MinGW
! 6: #
! 7: CC = gcc
! 8: #CFLAGS = -Wall -g -DDEBUG -D_WIN32_WINNT=0X501
! 9: CFLAGS = -Wall -Os -DNDEBUG -D_WIN32_WINNT=0X501
! 10: LDLIBS = -lws2_32 -liphlpapi
! 11: # -lwsock32
! 12: # -liphlpapi is used for GetBestRoute()
! 13: PYTHON=\utils\python25\python
! 14: OBJS=miniwget.o minixml.o igd_desc_parse.o minisoap.o \
! 15: miniupnpc.o upnpreplyparse.o upnpcommands.o upnperrors.o \
! 16: connecthostport.o portlistingparse.o receivedata.o
! 17: OBJSDLL=$(addprefix dll/, $(OBJS))
! 18:
! 19: all: init upnpc-static upnpc-shared testminixml libminiupnpc.a miniupnpc.dll
! 20:
! 21: init:
! 22: mkdir dll
! 23: echo init > init
! 24:
! 25: clean:
! 26: del upnpc testminixml *.o
! 27: del dll\*.o
! 28: del *.exe
! 29: del miniupnpc.dll
! 30: del libminiupnpc.a
! 31:
! 32: libminiupnpc.a: $(OBJS)
! 33: $(AR) cr $@ $?
! 34:
! 35: pythonmodule: libminiupnpc.a
! 36: $(PYTHON) setupmingw32.py build --compiler=mingw32
! 37: $(PYTHON) setupmingw32.py install --skip-build
! 38:
! 39: miniupnpc.dll: libminiupnpc.a $(OBJSDLL)
! 40: dllwrap -k --driver-name gcc \
! 41: --def miniupnpc.def \
! 42: --output-def miniupnpc.dll.def \
! 43: --implib miniupnpc.lib -o $@ \
! 44: $(OBJSDLL) $(LDLIBS)
! 45:
! 46: miniupnpc.lib: miniupnpc.dll
! 47: echo $@ generated with $<
! 48:
! 49: dll/upnpc.o: upnpc.o
! 50: echo $@ generated with $<
! 51:
! 52: .c.o:
! 53: $(CC) $(CFLAGS) -DSTATICLIB -c -o $@ $<
! 54: $(CC) $(CFLAGS) -DMINIUPNP_EXPORTS -c -o dll/$@ $<
! 55:
! 56: upnpc.o:
! 57: $(CC) $(CFLAGS) -DSTATICLIB -c -o $@ $<
! 58: $(CC) $(CFLAGS) -c -o dll/$@ $<
! 59:
! 60: upnpc-static: upnpc.o libminiupnpc.a
! 61: $(CC) -enable-stdcall-fixup -o $@ $^ $(LDLIBS)
! 62:
! 63: upnpc-shared: dll/upnpc.o miniupnpc.lib
! 64: $(CC) -enable-stdcall-fixup -o $@ $^ $(LDLIBS)
! 65:
! 66: wingenminiupnpcstrings: wingenminiupnpcstrings.o
! 67:
! 68: wingenminiupnpcstrings.o: wingenminiupnpcstrings.c
! 69:
! 70: miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings
! 71: wingenminiupnpcstrings $< $@
! 72:
! 73: minixml.o: minixml.c minixml.h miniupnpcstrings.h
! 74:
! 75: upnpc.o: upnpc.c miniwget.h minisoap.h miniupnpc.h igd_desc_parse.h upnpreplyparse.h upnpcommands.h upnperrors.h
! 76:
! 77: miniwget.o: miniwget.c miniwget.h miniupnpcstrings.h connecthostport.h
! 78:
! 79: minisoap.o: minisoap.c minisoap.h miniupnpcstrings.h
! 80:
! 81: miniupnpc.o: miniupnpc.c miniupnpc.h minisoap.h miniwget.h minixml.h
! 82:
! 83: igd_desc_parse.o: igd_desc_parse.c igd_desc_parse.h
! 84:
! 85: testminixml: minixml.o igd_desc_parse.o testminixml.c
! 86:
! 87: upnpreplyparse.o: upnpreplyparse.c upnpreplyparse.h minixml.h
! 88:
! 89: upnpcommands.o: upnpcommands.c upnpcommands.h upnpreplyparse.h miniupnpc.h portlistingparse.h
! 90:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>