--- Makefile.orig Wed Feb 13 14:09:52 2002 +++ Makefile Thu Jul 18 00:11:49 2002 @@ -1,4 +1,3 @@ -CC = gcc DEFS = -DYY_NO_UNPUT -DDEBUG # # We assume ucd-snmp is installed in /opt/ucd-snmp-4.2. If not, replace with @@ -7,8 +6,10 @@ # -lcrypto is OpenSSL. # # CFLAGS = -g -Wall -I/usr/local/include -CFLAGS = -g -Wall -I/opt/ucd-snmp-4.2/include -LIBS = -L/opt/ucd-snmp-4.2/lib -lsnmp -lcrypto -lnsl -lfl -lm +CFLAGS += -g -Wall -I${LOCALBASE}/include +LIBS += -L${LOCALBASE}/lib -lsnmp -lcrypto -lfl -lm + +all: docsis docsis: Makefile docsis_decode.o docsis_yy.o docsis_main.o md5.o hmac_md5.o docsis_snmp.o ethermac.h ethermac.o version.h docsis_encode.o $(CC) $(CFLAGS) $(DEFS) -g -o docsis docsis_main.o docsis_encode.o docsis_decode.o docsis_yy.o md5.o hmac_md5.o docsis_snmp.o ethermac.o $(LIBS)