--- Makefile.orig Tue Mar 19 19:16:06 1996 +++ Makefile Sat Jul 24 13:30:04 1999 @@ -9,12 +9,11 @@ # pick gcc if you'd rather , and/or do -g instead of -O if debugging # debugging # DFLAGS = -DTEST -DDEBUG -CFLAGS = -O -XFLAGS = # xtra cflags, set by systype targets +CFLAGS ?= -O XLIBS = # xtra libs if necessary? # -Bstatic for sunos, -static for gcc, etc. You want this, trust me. STATIC = -CC = cc $(CFLAGS) +CC ?= cc LD = $(CC) -s # linker; defaults to stripped executables o = o # object extension @@ -28,7 +28,7 @@ ### HARD TARGETS nc: netcat.c - $(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS) + $(LD) $(CFLAGS) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS) nc-dos: @echo "DOS?! Maybe someday, but not now" @@ -81,7 +81,7 @@ # virtually the same as netbsd/bsd44lite/whatever freebsd: - make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD' STATIC=-static + make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD $(XFLAGS)' STATIC=-static bsdi: make -e $(ALL) $(MFLAGS) XFLAGS='-DBSDI' STATIC=-Bstatic