# HG changeset patch # User mas01cr # Date 1226503411 0 # Node ID 6fd52a9a149060c597f4b7cc3d18eec30a53971a # Parent 3b6cd1dfbddbad4a4770f8b03519bebe47893d4e Only compile cmdline.c once (Also, compile it without -Wall, because we can't in fact force gengetopt to produce const-correct code at all). diff -r 3b6cd1dfbddb -r 6fd52a9a1490 Makefile --- a/Makefile Wed Nov 12 15:23:30 2008 +0000 +++ b/Makefile Wed Nov 12 15:23:31 2008 +0000 @@ -50,12 +50,12 @@ gcc -c $(CFLAGS) $< -$(EXECUTABLE): cmdline.c $(OBJS) soapServer.cpp soapClient.cpp soapC.cpp +$(EXECUTABLE): cmdline.o $(OBJS) soapServer.cpp soapClient.cpp soapC.cpp g++ -c $(CFLAGS) $(GSOAP_INCLUDE) -Wall audioDB.cpp -DBINARY g++ -o $(EXECUTABLE) $(CFLAGS) audioDB.o $^ $(LIBGSL) $(GSOAP_INCLUDE) $(GSOAP_CPP) -$(LIBRARY): cmdline.c $(LIBOBJS) +$(LIBRARY): cmdline.o $(LIBOBJS) g++ -c $(CFLAGS) -Wall audioDB.cpp g++ -shared -o $(LIBRARY) $(CFLAGS) $(LIBGSL) audioDB.o $^