]>
Commit | Line | Data |
---|---|---|
fed485e0 | 1 | # |
e9093718 RR |
2 | # File: Makefile for samples |
3 | # Author: Robert Roebling | |
4 | # Created: 1999 | |
fed485e0 | 5 | # Updated: |
e9093718 | 6 | # Copyright: (c) 1998 Robert Roebling |
fed485e0 | 7 | # |
e9093718 RR |
8 | # This makefile requires a Unix version of wxWindows |
9 | # to be installed on your system. This is most often | |
10 | # done typing "make install" when using the complete | |
11 | # sources of wxWindows or by installing the two | |
12 | # RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm | |
13 | # under Linux. | |
fed485e0 | 14 | # |
fed485e0 | 15 | |
a6f762a6 | 16 | CXX = $(shell wx-config --cxx) |
fed485e0 | 17 | |
e9093718 | 18 | PROGRAM = demo |
fed485e0 | 19 | |
e9093718 | 20 | OBJECTS = $(PROGRAM).o |
fed485e0 | 21 | |
e9093718 RR |
22 | # implementation |
23 | ||
24 | .SUFFIXES: .o .cpp | |
25 | ||
26 | .cpp.o : | |
a6f762a6 | 27 | $(CXX) -c `wx-config --cxxflags` -o $@ $< |
e9093718 RR |
28 | |
29 | all: $(PROGRAM) | |
30 | ||
31 | $(PROGRAM): $(OBJECTS) | |
a6f762a6 | 32 | $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` |
e9093718 RR |
33 | |
34 | clean: | |
35 | rm -f *.o $(PROGRAM) |