--- GNUmakefile.orig Sun Jun 20 11:22:24 2004 +++ GNUmakefile Sun Jan 30 02:09:00 2005 @@ -1,5 +1,5 @@ # can't use -fno-rtti yet because it causes problems with exception handling in GCC 2.95.2 -CXXFLAGS = -g +CXXFLAGS ?= -g # Uncomment the following two lines to do a release build. # Note that you must define NDEBUG for your own application if you define it for Crypto++. # Make sure you run the validation tests and test your own program thoroughly @@ -75,7 +75,7 @@ TESTIMPORTOBJS = $(TESTOBJS:.o=.import.o) DLLTESTOBJS = dlltest.dllonly.o -all: cryptest.exe +all: cryptest clean: $(RM) cryptest.exe libcryptopp.a $(LIBOBJS) $(TESTOBJS) cryptopp.dll libcryptopp.dll.a libcryptopp.import.a cryptest.import.exe dlltest.exe $(DLLOBJS) $(LIBIMPORTOBJS) $(TESTIMPORTOBJS) $(DLLTESTOBJS) @@ -84,7 +84,7 @@ $(AR) $(ARFLAGS) $@ $(LIBOBJS) $(RANLIB) $@ -cryptest.exe: libcryptopp.a $(TESTOBJS) +cryptest: libcryptopp.a $(TESTOBJS) $(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) -L. -lcryptopp $(LDFLAGS) $(LDLIBS) nolib: $(OBJS) # makes it faster to test changes