CC=g++ CFLAGS=-c -std=c++0x -O4 -MMD -MP -Wall -ggdb SOURCES = \ Marshal.C \ MultiCast.C \ CommandDispatcher.C \ ContainerThread.C \ CurrentRequest.C \ DatabaseForThread.C \ DatabaseWithRetry.C \ DeadManTimer.C \ FixedMalloc.C \ GlobalConfigFile.C \ InputFramework.C \ IPollSet.C \ MarketHours.C \ Messages.C \ MicroSleep.C \ MiscSQL.C \ MiscSupport.C \ NewConnections.C \ NewWorkerCluster.C \ Ping.C \ PipeConditionVar.C \ PollSet.C \ Random.C \ ReplyToClient.C \ SelectableRequestQueue.C \ ServerConnection64.C \ ServerConnection.C \ SocketInfo.C \ TalkWithServer64.C \ TalkWithServer.C \ TclUtil.C \ ThreadClass.C \ ThreadMonitor.C \ TwoDLookup.C \ XmlSupport.C \ ZLibMalloc.C OBJECTS=$(SOURCES:.C=.o) DEPENDENCIES=$(OBJECTS:.o=.d) all: shared.a shared.a: $(OBJECTS) ar rcs $@ $^ clean: rm -f $(OBJECTS) $(DEPENDENCEIS) shared.a %.o: %.C $(CC) -o $@ $< $(CFLAGS) # Read the .d files. g++ automatically creates these to list the header files # used by each *.C file. -include $(DEPENDENCIES)