1999-11-21 14:28:15 -05:00
|
|
|
#
|
|
|
|
# File: Makefile for samples
|
|
|
|
# Author: Robert Roebling
|
|
|
|
# Created: 1999
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) 1998 Robert Roebling
|
|
|
|
#
|
|
|
|
# This makefile requires a Unix version of wxWindows
|
|
|
|
# to be installed on your system. This is most often
|
|
|
|
# done typing "make install" when using the complete
|
|
|
|
# sources of wxWindows or by installing the two
|
|
|
|
# RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm
|
|
|
|
# under Linux.
|
|
|
|
|
2003-11-08 10:16:38 -05:00
|
|
|
# this makefile may also be used as a template for simple makefiles for your
|
|
|
|
# own programs, the comments explain which parts of it you may have to modify
|
|
|
|
# to use it for your own programs
|
|
|
|
|
1999-11-21 14:28:15 -05:00
|
|
|
|
2003-11-08 10:16:38 -05:00
|
|
|
# you may change WX_CONFIG value to use a specific wx-config and to pass it
|
|
|
|
# some options, for example "--inplace" to use an uninstalled wxWindows
|
|
|
|
# version
|
|
|
|
#
|
|
|
|
# by default, wx-config from the PATH is used
|
|
|
|
WX_CONFIG := wx-config
|
|
|
|
|
|
|
|
# set this to the name of the main executable file
|
1999-11-21 14:28:15 -05:00
|
|
|
PROGRAM = minimal
|
|
|
|
|
2003-11-08 10:16:38 -05:00
|
|
|
# if your program has more than one source file, add more .o files to the line
|
|
|
|
# below
|
1999-11-21 14:28:15 -05:00
|
|
|
OBJECTS = $(PROGRAM).o
|
|
|
|
|
2003-11-08 10:16:38 -05:00
|
|
|
|
|
|
|
# you shouldn't have to edit anything below this line
|
|
|
|
CXX = $(shell $(WX_CONFIG) --cxx)
|
1999-11-21 14:28:15 -05:00
|
|
|
|
|
|
|
.SUFFIXES: .o .cpp
|
|
|
|
|
|
|
|
.cpp.o :
|
2003-11-08 10:16:38 -05:00
|
|
|
$(CXX) -c `$(WX_CONFIG) --cxxflags` -o $@ $<
|
1999-11-21 14:28:15 -05:00
|
|
|
|
|
|
|
all: $(PROGRAM)
|
|
|
|
|
|
|
|
$(PROGRAM): $(OBJECTS)
|
2003-11-08 10:16:38 -05:00
|
|
|
$(CXX) -o $(PROGRAM) $(OBJECTS) `$(WX_CONFIG) --libs`
|
1999-11-21 14:28:15 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o $(PROGRAM)
|