CFLAGS += -I. -g -O0 -funsigned-char -std=c++0x OBJECTS = \ parser/Scanner.o \ JSON/Parser.o \ variant/Variant.o \ internet/Address.o \ internet/DNSClient.o \ internet/Internet.o \ internet/IPV4Address.o \ internet/IPV6Address.o \ internet/Socket.o \ defer/Deferred.o \ object/Object.o \ defer/Reactor.o \ defer/SelectReactor.o \ database/ColumnInfo.o \ database/PostgresClient.o \ database/RedisClient.o all: JSON/TestParser$(EXE) internet/TestInternet$(EXE) database/TestPostgresClient$(EXE) #$(OBJECTS) JSON/TestParser$(EXE): JSON/TestParser.o $(OBJECTS) $(CXX) $(LFLAGS) -o $@ $< $(OBJECTS) internet/TestInternet$(EXE): internet/TestInternet.o $(OBJECTS) $(CXX) $(LFLAGS) -o $@ $< $(OBJECTS) JSON/TestParser.o: JSON/TestParser.cc JSON/Parser.h variant/Variant.h parser/Scanner.h $(CXX) -c $(CFLAGS) -o $@ $< internet/TestInternet.o: internet/TestInternet.cc internet/Socket.h defer/Deferred.h defer/Reactor.h variant/Variant.h $(CXX) -c $(CFLAGS) -o $@ $< parser/Scanner.o: parser/Scanner.cc parser/Scanner.h $(CXX) -c $(CFLAGS) -o $@ $< defer/Deferred.o: defer/Deferred.cc defer/Deferred.h object/Object.h variant/Variant.h $(CXX) -c $(CFLAGS) -o $@ $< defer/Reactor.o: defer/Reactor.cc defer/Reactor.h object/Object.h variant/Variant.h $(CXX) -c $(CFLAGS) -o $@ $< defer/SelectReactor.o: defer/SelectReactor.cc defer/SelectReactor.h defer/Reactor.h object/Object.h variant/Variant.h defer/Deferred.h $(CXX) -c $(CFLAGS) -o $@ $< JSON/Parser.o: JSON/Parser.cc JSON/Parser.h parser/Scanner.h $(CXX) -c $(CFLAGS) -o $@ $< variant/Variant.o: variant/Variant.cc variant/Variant.h object/Object.h $(CXX) -c $(CFLAGS) -o $@ $< internet/Address.o: internet/Address.cc internet/Address.h $(CXX) -c $(CFLAGS) -o $@ $< internet/DNSClient.o: internet/DNSClient.cc internet/DNSClient.h object/Object.h variant/Variant.h defer/Deferred.h internet/Address.h defer/Reactor.h internet/IPV4Address.h $(CXX) -c $(CFLAGS) -o $@ $< internet/Internet.o: internet/Internet.cc internet/Internet.h $(CXX) -c $(CFLAGS) -o $@ $< internet/Socket.o: internet/Socket.cc internet/Socket.h object/Object.h defer/Reactor.h defer/SelectReactor.h defer/Deferred.h $(CXX) -c $(CFLAGS) -o $@ $< internet/IPV4Address.o: internet/IPV4Address.cc internet/IPV4Address.h internet/Address.h $(CXX) -c $(CFLAGS) -o $@ $< internet/IPV6Address.o: internet/IPV6Address.cc internet/IPV6Address.h internet/Address.h $(CXX) -c $(CFLAGS) -o $@ $< database/ColumnInfo.o: database/ColumnInfo.cc database/ColumnInfo.h $(CXX) -c $(CFLAGS) -o $@ $< database/PostgresClient.o: database/PostgresClient.cc database/PostgresClient.h database/ColumnInfo.h internet/Socket.h defer/Deferred.h $(CXX) -c $(CFLAGS) -o $@ $< database/RedisClient.o: database/RedisClient.cc database/RedisClient.h database/ColumnInfo.h internet/Socket.h defer/Deferred.h $(CXX) -c $(CFLAGS) -o $@ $< database/MemcacheClient.o: database/MemcacheClient.cc database/MemcacheClient.h database/ColumnInfo.h internet/Socket.h defer/Deferred.h $(CXX) -c $(CFLAGS) -o $@ $< database/TestPostgresClient$(EXE): database/TestPostgresClient.o $(OBJECTS) $(CXX) $(LFLAGS) -o $@ $< $(OBJECTS) database/TestPostgresClient.o: database/TestPostgresClient.cc database/PostgresClient.h database/ColumnInfo.h internet/Socket.h defer/Deferred.h internet/Address.h internet/IPV4Address.h object/Object.h variant/Variant.h $(CXX) -c $(CFLAGS) -o $@ $< database/TestRedisClient.o: database/TestRedisClient.cc database/RedisClient.h database/ColumnInfo.h internet/Socket.h defer/Deferred.h internet/Address.h internet/IPV4Address.h object/Object.h variant/Variant.h $(CXX) -c $(CFLAGS) -o $@ $< database/TestRedisClient$(EXE): database/TestRedisClient.o $(OBJECTS) $(CXX) $(LFLAGS) -o $@ $< $(OBJECTS) database/TestMemcacheClient.o: database/TestMemcacheClient.cc database/MemcacheClient.h database/ColumnInfo.h internet/Socket.h defer/Deferred.h internet/Address.h internet/IPV4Address.h object/Object.h variant/Variant.h $(CXX) -c $(CFLAGS) -o $@ $< database/TestMemcacheClient$(EXE): database/TestMemcacheClient.o $(OBJECTS) $(CXX) $(LFLAGS) -o $@ $< $(OBJECTS) clean: rm -f $(OBJECTS)