--- Makefile.orig Mon Nov 18 18:52:28 2002 +++ Makefile Mon Nov 18 18:55:30 2002 @@ -1,26 +1,24 @@ -CC= gcc PFLAGS= -cache-dir=/tmp/${USER} PURIFY= purify ${PFLAGS} -INCS= -I/usr/local/ssl/include -LIBS= -L/usr/local/ssl/lib -L. -lnsl -lssl -lcrypto -lutl +INCS= -I${OPENSSLINC} +LIBS= -L${OPENSSLLIB} -L. -lssl -lcrypto -lutl SRCS= sslsniffer.c OBJS= ${SRCS:.c=.o} BINS= sslsniffer UTL_LIB= libutl.a UTL_SRCS= general_utilities.c net_utilities.c AR= ar -ARFLAGS= rs +ARFLAGS= r BINS.PURIFY= sslpure -CCFLAGS= -g -Wall -O3 -pedantic ${INCS} all: $(UTL_LIB) ${BINS} %.o: %.c - ${CC} ${CCFLAGS} -c $< + ${CC} ${CFLAGS} ${INCS} -c $< ${BINS}: ${OBJS} - ${CC} ${CCFLAGS} -o $@ ${OBJS} ${LIBS} + ${CC} ${CFLAGS} ${INCS} -o $@ ${OBJS} ${LIBS} $(UTL_LIB): general_utilities.o net_utilities.o ${AR} ${ARFLAGS} $@ general_utilities.o net_utilities.o