# under Linux.
#
-CC = gcc
+CXX = $(shell wx-config --cxx)
PROGRAM = life
-OBJECTS = $(PROGRAM).o dialogs.o game.o
+OBJECTS = $(PROGRAM).o dialogs.o game.o reader.o
# implementation
.SUFFIXES: .o .cpp
.cpp.o :
- $(CC) -c `wx-config --cflags` -o $@ $<
+ $(CXX) -c `wx-config --cxxflags` -o $@ $<
all: $(PROGRAM)
$(PROGRAM): $(OBJECTS)
- $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+ $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
clean:
rm -f *.o $(PROGRAM)