2010-01-15 16:02:04 +00:00
|
|
|
include ../config.mk
|
|
|
|
|
2009-02-05 21:08:46 +00:00
|
|
|
NAME=r_socket
|
2010-04-14 11:28:56 +00:00
|
|
|
#DEPS=r_util
|
2012-10-03 12:31:35 +00:00
|
|
|
OBJS=socket.o proc.o http.o http_server.o
|
2011-05-17 23:27:09 +00:00
|
|
|
ifeq (${HAVE_LIB_SSL},1)
|
2011-07-13 17:22:38 +00:00
|
|
|
CFLAGS+=${SSL_CFLAGS}
|
|
|
|
LDFLAGS+=${SSL_LDFLAGS}
|
2011-05-17 23:27:09 +00:00
|
|
|
endif
|
2010-01-15 16:02:04 +00:00
|
|
|
|
2011-07-26 14:27:21 +00:00
|
|
|
# OSX 10.7 (lion)
|
|
|
|
ifeq (${OSTYPE},darwin)
|
|
|
|
LDFLAGS+=-lcrypto
|
|
|
|
endif
|
2009-02-05 21:08:46 +00:00
|
|
|
# on solaris only
|
2010-01-15 16:02:04 +00:00
|
|
|
ifeq (${OSTYPE},solaris)
|
|
|
|
LDFLAGS+=-lsocket
|
|
|
|
endif
|
2012-06-01 12:50:24 +00:00
|
|
|
ifeq (${OSTYPE},qnx)
|
|
|
|
LDFLAGS+=-lsocket
|
|
|
|
endif
|
2010-01-15 16:02:04 +00:00
|
|
|
# windows
|
|
|
|
ifeq (${OSTYPE},windows)
|
|
|
|
LDFLAGS=-lwsock32
|
|
|
|
endif
|
2009-02-05 21:08:46 +00:00
|
|
|
|
|
|
|
include ../rules.mk
|
2012-09-05 17:31:32 +00:00
|
|
|
|
|
|
|
test:
|
2012-09-06 01:12:54 +00:00
|
|
|
gcc -DMAIN -g -ggdb *.c -I ../include/ `pkg-config openssl --libs` -lr_util
|