allow to build miniupnpc-libevent with MacPorts

This commit is contained in:
Thomas Bernard 2014-11-17 17:29:52 +01:00
parent 7264fa53a9
commit fa414c5bb6
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,6 @@
# $Id: Makefile,v 1.2 2014/11/08 17:12:15 nanard Exp $
# $Id: Makefile,v 1.5 2014/11/17 16:27:35 nanard Exp $
OS = $(shell uname -s)
CFLAGS = -O0 -g -DDEBUG
# libevent debug
@ -12,6 +14,12 @@ CFLAGS += -D_POSIX_C_SOURCE=1
LDFLAGS = -levent
ifeq ($(OS), Darwin)
CFLAGS += -D_DARWIN_C_SOURCE
CFLAGS += -I/opt/local/include
LDFLAGS += -L/opt/local/lib
endif
LIB = libminiupnpc-ev.a
LIB_SRCS = miniupnpc-libevent.c minixml.c igd_desc_parse.c upnpreplyparse.c