]>
Commit | Line | Data |
---|---|---|
f30dcba9 RL |
1 | # Purpose: makefile for grid example (Unix) |
2 | # Created: 2000-03-15 | |
a4294b78 | 3 | |
a6f762a6 | 4 | CXX = $(shell wx-config --cxx) |
a4294b78 | 5 | |
f30dcba9 | 6 | PROGRAM = grid |
a4294b78 | 7 | |
1e8d2f69 | 8 | OBJECTS = $(PROGRAM).o |
a4294b78 | 9 | |
1e8d2f69 RR |
10 | # implementation |
11 | ||
12 | .SUFFIXES: .o .cpp | |
13 | ||
14 | .cpp.o : | |
a6f762a6 | 15 | $(CXX) -c `wx-config --cxxflags` -o $@ $< |
1e8d2f69 RR |
16 | |
17 | all: $(PROGRAM) | |
18 | ||
19 | $(PROGRAM): $(OBJECTS) | |
a6f762a6 | 20 | $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` |
1e8d2f69 | 21 | |
f30dcba9 | 22 | clean: |
1e8d2f69 | 23 | rm -f *.o $(PROGRAM) |