--- gnutls/Makefile.orig 2009-12-13 10:02:39.000000000 +0800 +++ gnutls/Makefile 2013-09-08 21:03:21.000000000 +0800 @@ -1,20 +1,19 @@ #-------------------------------------------------------------------- -CC = gcc AR = ar cru -CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC +CFLAGS += -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC SOFLAGS = -shared -LDFLAGS = -lstdc++ -lpthread -lresolv +LDFLAGS = -lstdc++ -lpthread LINKER = $(CC) LINT = lint -c RM = /bin/rm -f -GNUTLS_INCL = -I/usr/local/include/ -GNUTLS_LIB = -L/usr/local/lib -lgcrypt -lgpg-error -lgnutls -lgnutls-extra -lstdc++ +GNUTLS_INCL = -I%PREFIX%/include +GNUTLS_LIB = -L%PREFIX%/lib -lgcrypt -lgpg-error -lgnutls -lgnutls-extra -lstdc++ -LIBEVENT_LIB = -L$(HOME)/libevent -levent +LIBEVENT_LIB = -L%PREFIX%/lib -levent SPSERVER_INCL = -I../spserver SPSERVER_LIB = -L../spserver -lspserver