X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46ccb5107ff22cb5cc1b36ef2a28ea1e31b0fc91..dd5b579ceb227121206833b7c6f9aeece6e3ef7e:/samples/minimal/makefile.unx diff --git a/samples/minimal/makefile.unx b/samples/minimal/makefile.unx index 6e0b9cac43..2e6be9375f 100644 --- a/samples/minimal/makefile.unx +++ b/samples/minimal/makefile.unx @@ -1,17 +1,49 @@ # -# File: makefile.unx -# Author: Julian Smart -# Created: 1998 +# File: Makefile for samples +# Author: Robert Roebling +# Created: 1999 # Updated: -# Copyright: (c) 1998 Julian Smart +# Copyright: (c) 1998 Robert Roebling # -# "%W% %G%" +# 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. + +# 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 + + +# 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 # -# Makefile for minimal example (UNIX). +# by default, wx-config from the PATH is used +WX_CONFIG := wx-config + +# set this to the name of the main executable file +PROGRAM = minimal + +# if your program has more than one source file, add more .o files to the line +# below +OBJECTS = $(PROGRAM).o + + +# you shouldn't have to edit anything below this line +CXX = $(shell $(WX_CONFIG) --cxx) + +.SUFFIXES: .o .cpp -PROGRAM=minimal +.cpp.o : + $(CXX) -c `$(WX_CONFIG) --cxxflags` -o $@ $< -OBJECTS=$(PROGRAM).o +all: $(PROGRAM) -include ../../src/makeprog.env +$(PROGRAM): $(OBJECTS) + $(CXX) -o $(PROGRAM) $(OBJECTS) `$(WX_CONFIG) --libs` +clean: + rm -f *.o $(PROGRAM)