X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4fda16bb0d3b9b5fae6d289e4c3a93701fa4839..d7926e0b761b782b82f9ef01ff542251b2ef5ae7:/samples/config/makefile.unx diff --git a/samples/config/makefile.unx b/samples/config/makefile.unx index fd8e0e5b1e..8fae357103 100644 --- a/samples/config/makefile.unx +++ b/samples/config/makefile.unx @@ -13,16 +13,23 @@ # under Linux. # +PROGRAM = config + CC = gcc -PROGRAM = config +OBJECTS = $(PROGRAM).o + +# implementation + +.SUFFIXES: .o .cpp + +.cpp.o : + $(CC) -c `wx-config --cflags` -o $@ $< -$(PROGRAM): $(PROGRAM).o - $(CC) -o $(PROGRAM) \ - $(PROGRAM).o `wx-config --libs` +all: $(PROGRAM) -$(PROGRAM).o: $(PROGRAM).cpp - $(CC) `wx-config --cflags` -c $(PROGRAM).cpp +$(PROGRAM): $(OBJECTS) + $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` clean: rm -f *.o $(PROGRAM)