# Created: 2000-03-14
# hand hacked from template file by Ron <ron@debian.org>
-CC = gcc
+CXX = $(shell wx-config --cxx)
PROGRAMS = client server
.SUFFIXES: .o .cpp
.cpp.o :
- $(CC) -c `wx-config --cxxflags` -o $@ $<
+ $(CXX) -c `wx-config --cxxflags` -o $@ $<
all: $(PROGRAMS)
client: client.o
- $(CC) -o $@ $< `wx-config --libs`
+ $(CXX) -o $@ $< `wx-config --libs`
server: server.o
- $(CC) -o $@ $< `wx-config --libs`
+ $(CXX) -o $@ $< `wx-config --libs`
clean:
rm -f *.o $(PROGRAMS)