]>
Commit | Line | Data |
---|---|---|
a4294b78 | 1 | # |
1e8d2f69 RR |
2 | # File: Makefile for samples |
3 | # Author: Robert Roebling | |
4 | # Created: 1999 | |
a4294b78 | 5 | # Updated: |
1e8d2f69 | 6 | # Copyright: (c) 1998 Robert Roebling |
a4294b78 | 7 | # |
1e8d2f69 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. | |
a4294b78 | 14 | # |
a4294b78 | 15 | |
1e8d2f69 | 16 | CC = gcc |
a4294b78 | 17 | |
4a0c68a7 | 18 | PROGRAM = test |
a4294b78 | 19 | |
1e8d2f69 | 20 | OBJECTS = $(PROGRAM).o |
a4294b78 | 21 | |
1e8d2f69 RR |
22 | # implementation |
23 | ||
24 | .SUFFIXES: .o .cpp | |
25 | ||
26 | .cpp.o : | |
27 | $(CC) -c `wx-config --cflags` -o $@ $< | |
28 | ||
29 | all: $(PROGRAM) | |
30 | ||
31 | $(PROGRAM): $(OBJECTS) | |
32 | $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` | |
33 | ||
34 | clean: | |
35 | rm -f *.o $(PROGRAM) |