CC=cl CFLAGS= -EHsc -O2 -I . -DMAKEFILES -nologo all: libhome.lib cmwAmbassador direct .c.obj: $(CC) $(CFLAGS) -c $*.c -o $*.obj get_socket.obj: get_socket.hh $(CC) -c $(CFLAGS) get_socket.cc common_functions.obj: common_functions.hh $(CC) -c $(CFLAGS) common_functions.cc server_functionsTCP.obj: server_functionsTCP.hh $(CC) -c $(CFLAGS) server_functionsTCP.cc server_functionsUDP.obj: server_functionsUDP.hh $(CC) -c $(CFLAGS) server_functionsUDP.cc quicklz.obj: quicklz.h $(CC) -c $(CFLAGS) quicklz.c Counter.obj: Counter.hh $(CC) -c $(CFLAGS) Counter.cc IO.obj: IO.hh $(CC) -c $(CFLAGS) IO.cc SendBuffer.obj: SendBuffer.hh $(CC) -c $(CFLAGS) SendBuffer.cc SendBufferCompressed.obj: SendBufferCompressed.hh $(CC) -c $(CFLAGS) SendBufferCompressed.cc SendBufferFile.obj: SendBufferFile.hh $(CC) -c $(CFLAGS) SendBufferFile.cc File.obj: File.hh $(CC) -c $(CFLAGS) File.cc FILEWrapper.obj: FILEWrapper.hh $(CC) -c $(CFLAGS) FILEWrapper.cc marshalling_integer.obj: marshalling_integer.hh $(CC) -c $(CFLAGS) marshalling_integer.cc objects = get_socket.obj common_functions.obj server_functionsTCP.obj server_functionsUDP.obj quicklz.obj Counter.obj IO.obj SendBuffer.obj SendBufferCompressed.obj SendBufferFile.obj File.obj FILEWrapper.obj marshalling_integer.obj libhome.lib: $(objects) lib /out:$@ $(objects) cmw_user_input.obj: cmw_user_input.hh $(CC) -c $(CFLAGS) cmw_user_input.cc cmwa_config_data.obj: cmwa_config_data.hh $(CC) -c $(CFLAGS) cmwa_config_data.cc local_messages_middle.cg.obj: local_messages_middle.cg.hh $(CC) -c $(CFLAGS) local_messages_middle.cg.cc remote_messages_middle.cg.obj: remote_messages_middle.cg.hh $(CC) -c $(CFLAGS) remote_messages_middle.cg.cc amb_objects = cmw_user_input.obj cmwa_config_data.obj local_messages_middle.cg.obj remote_messages_middle.cg.obj cmwAmbassador: cmwAmbassador.cc $(amb_objects) libhome.lib $(CC) $(CFLAGS) cmwAmbassador.cc /link $(amb_objects) libhome.lib "\program files\Microsoft SDKs\Windows\v7.1\Lib\wsock32.lib" "\program files\Microsoft SDKs\Windows\v7.1\Lib\ws2_32.lib" local_messages_front.cg.obj: local_messages_front.cg.hh $(CC) -c $(CFLAGS) local_messages_front.cg.cc direct: direct.cc local_messages_front.cg.obj libhome.lib $(CC) $(CFLAGS) direct.cc /link local_messages_front.cg.obj libhome.lib "\program files\Microsoft SDKs\Windows\v7.1\Lib\wsock32.lib" "\program files\Microsoft SDKs\Windows\v7.1\Lib\ws2_32.lib" clean: del *.obj libhome.lib cmwAmbassador.exe direct.exe install: copy *.exe \Users\Store\bin\