2 # File: Makefile for samples
3 # Author: Robert Roebling
6 # Copyright: (c) 1998 Robert Roebling
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
15 # this makefile may also be used as a template for simple makefiles for your
16 # own programs, the comments explain which parts of it you may have to modify
17 # to use it for your own programs
20 # you may change WX_CONFIG value to use a specific wx-config and to pass it
21 # some options, for example "--inplace" to use an uninstalled wxWindows
24 # by default, wx-config from the PATH is used
25 WX_CONFIG := wx-config
27 # set this to the name of the main executable file
30 # if your program has more than one source file, add more .o files to the line
32 OBJECTS = $(PROGRAM).o
35 # you shouldn't have to edit anything below this line
36 CXX = $(shell $(WX_CONFIG) --cxx)
41 $(CXX) -c `$(WX_CONFIG) --cxxflags` -o $@ $<
45 $(PROGRAM): $(OBJECTS)
46 $(CXX) -o $(PROGRAM) $(OBJECTS) `$(WX_CONFIG) --libs`