summaryrefslogtreecommitdiff
path: root/net/spserver/files/patch-spserver_Makefile
blob: 0e43df3ae86fdead9023f5c8440622145b743da8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- spserver/Makefile.orig	Wed Aug 22 22:04:05 2007
+++ spserver/Makefile	Fri Aug 24 15:37:38 2007
@@ -3,19 +3,15 @@
 
 CC = gcc
 AR = ar cru
-CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC
+LIBEVENT_INCL = -I%PREFIX%/include
+LIBEVENT_LIB  = -L%PREFIX%/lib -levent
+CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC $(LIBEVENT_INCL)
 SOFLAGS = -shared
-LDFLAGS = -lstdc++ -lpthread -lresolv
+LDFLAGS = -lstdc++ -lpthread $(LIBEVENT_LIB)
 
 LINKER = $(CC)
 LINT = lint -c
 RM = /bin/rm -f
-
-LIBEVENT_INCL = -I$(HOME)/libevent/
-LIBEVENT_LIB  = -L$(HOME)/libevent -levent
-
-CFLAGS  += $(LIBEVENT_INCL)
-LDFLAGS += $(LIBEVENT_LIB)
 
 #--------------------------------------------------------------------