.SUFFIXES: .o .cpp .c .cxx
.cpp.o :
- $(CC) -c $(CXXFLAGS) -o $@ $<
+ $(CXX) -c $(CXXFLAGS) -o $@ $<
# Set defaults from configure
include ../../src/make.env
all: client@PROGRAM_EXT@ server@PROGRAM_EXT@
sockets_resources.o: sockets.rc
- $(RESCOMP) $(RCINPUTSWITCH) $< $(RCOUTPUTSWITCH) $@ $(RESFLAGS)
+ $(RESCOMP) -i $< -o $@ $(RESFLAGS)
client@PROGRAM_EXT@: client.o ../../lib/@WX_TARGET_LIBRARY@ sockets_resources.o
- $(CC) $(LDFLAGS) -o client@PROGRAM_EXT@ sockets_resources.o client.o $(LDLIBS)
+ $(CXX) $(LDFLAGS) -o client@PROGRAM_EXT@ sockets_resources.o client.o $(LDLIBS)
server@PROGRAM_EXT@: server.o ../../lib/@WX_TARGET_LIBRARY@
- $(CC) $(LDFLAGS) -o server@PROGRAM_EXT@ sockets_resources.o server.o $(LDLIBS)
+ $(CXX) $(LDFLAGS) -o server@PROGRAM_EXT@ sockets_resources.o server.o $(LDLIBS)
clean:
rm -f client@PROGRAM_EXT@ server@PROGRAM_EXT@ sockets_resources.o client.o server.o core