]>
Commit | Line | Data |
---|---|---|
a2426843 RD |
1 | # |
2 | # Makefile for Unix | |
3 | # | |
4 | # This makefile requires a Unix version of wxWindows | |
5 | # to be installed on your system. This is most often | |
6 | # done typing "make install" when using the complete | |
7 | # sources of wxWindows or by installing the two | |
8 | # RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm | |
9 | # under Linux. | |
10 | # | |
11 | ||
12 | PROGRAM = embedded | |
13 | OBJECTS = $(PROGRAM).o | |
14 | ||
6b7e0a86 RD |
15 | #WX_CFG = wx-config |
16 | WX_CFG = wxgtk2ud-2.5-config | |
17 | ||
18 | EXTRAINC=-I../../include -I/usr/include/python2.3 | |
19 | EXTRALIB=-L/usr/lib/python2.3/config -lpython2.3 | |
20 | CXX = $(shell $(WX_CFG) --cxx) | |
a2426843 RD |
21 | |
22 | ||
23 | .SUFFIXES: .o .cpp | |
24 | ||
25 | .cpp.o : | |
6b7e0a86 | 26 | $(CXX) -c -g `$(WX_CFG) --cxxflags` $(EXTRAINC) -o $@ $< |
a2426843 RD |
27 | |
28 | all: $(PROGRAM) | |
29 | ||
30 | $(PROGRAM): $(OBJECTS) | |
6b7e0a86 | 31 | $(CXX) -g -o $(PROGRAM) $(OBJECTS) `$(WX_CFG) --libs` $(EXTRALIB) |
a2426843 RD |
32 | |
33 | clean: | |
34 | rm -f *.o $(PROGRAM) |