| 1 | # |
| 2 | # File: Makefile for the widgets sample |
| 3 | # Author: Vadim Zeitlin |
| 4 | # Copyright: (c) 2002 wxWindows team |
| 5 | # |
| 6 | # This makefile requires a Unix version of wxWindows |
| 7 | # to be installed on your system. This is most often |
| 8 | # done typing "make install" when using the complete |
| 9 | # sources of wxWindows or by installing the two |
| 10 | # RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm |
| 11 | # under Linux. |
| 12 | # |
| 13 | |
| 14 | CXX = $(shell wx-config --cxx) |
| 15 | |
| 16 | PROGRAM = widgets |
| 17 | |
| 18 | OBJECTS = $(PROGRAM).o \ |
| 19 | button.o \ |
| 20 | combobox.o \ |
| 21 | gauge.o \ |
| 22 | listbox.o \ |
| 23 | notebook.o \ |
| 24 | radiobox.o \ |
| 25 | slider.o \ |
| 26 | spinbtn.o \ |
| 27 | static.o \ |
| 28 | textctrl.o |
| 29 | |
| 30 | # implementation |
| 31 | |
| 32 | .SUFFIXES: .o .cpp |
| 33 | |
| 34 | .cpp.o : |
| 35 | $(CXX) -c `wx-config --cxxflags` -o $@ $< |
| 36 | |
| 37 | all: $(PROGRAM) |
| 38 | |
| 39 | $(PROGRAM): $(OBJECTS) |
| 40 | $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` |
| 41 | |
| 42 | clean: |
| 43 | rm -f *.o $(PROGRAM) |