allow to build miniupnpc-libevent with MacPorts
This commit is contained in:
parent
7264fa53a9
commit
fa414c5bb6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue