radare2/libr/socket/Makefile

31 lines
511 B
Makefile
Raw Normal View History

include ../config.mk
NAME=r_socket
#DEPS=r_util
OBJS=socket.o proc.o http.o http_server.o
ifeq (${HAVE_LIB_SSL},1)
CFLAGS+=${SSL_CFLAGS}
LDFLAGS+=${SSL_LDFLAGS}
endif
# OSX 10.7 (lion)
ifeq (${OSTYPE},darwin)
LDFLAGS+=-lcrypto
endif
# on solaris only
ifeq (${OSTYPE},solaris)
LDFLAGS+=-lsocket
endif
ifeq (${OSTYPE},qnx)
LDFLAGS+=-lsocket
endif
# windows
ifeq (${OSTYPE},windows)
LDFLAGS=-lwsock32
endif
include ../rules.mk
test:
gcc -DMAIN -g -ggdb *.c -I ../include/ `pkg-config openssl --libs` -lr_util