--- Makefile.org 2006-10-14 22:59:40.000000000 -0700
+++ Makefile 2006-10-14 23:01:36.000000000 -0700
# DFLAGS = -DTEST -DDEBUG
DFLAGS = -DGAPING_SECURITY_HOLE
XFLAGS = # xtra cflags, set by systype targets
XLIBS = # xtra libs if necessary?
# -Bstatic for sunos, -static for gcc, etc. You want this, trust me.
-LD = $(CC) -s # linker; defaults to stripped executables
-cryptcat: netcat.c farm9crypt.o twofish2.o
- $(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o cryptcat netcat.c farm9crypt.o twofish2.o $(XLIBS)
+cryptcat: netcat.o farm9crypt.o twofish2.o
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
@echo "DOS?! Maybe someday, but not now"
make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD' STATIC=-static \
+ make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD' XLIBS='-lstdc++'
make -e $(ALL) $(MFLAGS) XFLAGS='-DBSDI' STATIC=-Bstatic
make -e $(ALL) $(MFLAGS) XFLAGS='-DNEXT' STATIC=-Bstatic
farm9crypt.o: farm9crypt.cc farm9crypt.h
twofish2.o: twofish2.cc twofish2.h
# start with this for a new architecture, and see what breaks.