CPPFLAGS= -std=c++0x -O3 -s -Wreorder -W -Wall -I. -DCMW_MAKEFILES -DSYSLOG_AVAILABLE CC=g++ AR=ar LIBS=-L./ -L/usr/lib all: libhome.a cmwAmbassador direct get_socket.o: get_socket.hh common_functions.o: common_functions.hh server_functionsTCP.o: server_functionsTCP.hh server_functionsUDP.o: server_functionsUDP.hh marshalling_integer.o: marshalling_integer.hh quicklz.o: quicklz.h Counter.o: Counter.hh IO.o: IO.hh SendBuffer.o: SendBuffer.hh SendBufferCompressed.o: SendBufferCompressed.hh SendBufferFile.o: SendBufferFile.hh File.o: File.hh FILEWrapper.o: FILEWrapper.hh objects = get_socket.o common_functions.o server_functionsTCP.o server_functionsUDP.o marshalling_integer.o quicklz.o Counter.o IO.o SendBuffer.o SendBufferCompressed.o SendBufferFile.o File.o FILEWrapper.o libhome.a: $(objects) $(AR) r $@ $(objects) cmw_user_input.o: cmw_user_input.hh cmwa_config_data.o: cmwa_config_data.hh local_messages_middle.cg.o: local_messages_middle.cg.hh remote_messages_middle.cg.o: remote_messages_middle.cg.hh amb_objects = cmw_user_input.o cmwa_config_data.o local_messages_middle.cg.o remote_messages_middle.cg.o cmwAmbassador: cmwAmbassador.cc cmwAmbassador.hh $(amb_objects) libhome.a $(CC) -o $@ $(CPPFLAGS) cmwAmbassador.cc $(amb_objects) libhome.a ls -l $@ local_messages_front.cg.o: local_messages_front.cg.hh direct: direct.cc local_messages_front.cg.o libhome.a $(CC) -o $@ $(CPPFLAGS) direct.cc local_messages_front.cg.o libhome.a ls -l $@ INSTALL_DIR=/usr/local install: cp -f libhome.a $(INSTALL_DIR)/lib cp -f direct cmwAmbassador $(INSTALL_DIR)/bin cp -f common_functions.hh get_socket.hh server_functions*.hh Counter.hh ErrorWordsShepherd.hh File.hh IO.hh marshalling_integer.hh SendBuffer*.hh Formatting.hh ReceiveBuffer*.hh MarshallingFunctions.hh platforms.hh quicklz.h align.h segmented_array.h vecarray.h $(INSTALL_DIR)/include uninstall: rm -f $(INSTALL_DIR)/lib/libhome.a rm -f $(INSTALL_DIR)/bin/direct $(INSTALL_DIR)/bin/cmwAmbassador clean: rm -f $(objects) $(amb_objects) local_messages_front.cg.o libhome.a cmwAmbassador direct