X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4fda16bb0d3b9b5fae6d289e4c3a93701fa4839..ccdb23df47718594a0e3ac791ff820219b39f595:/samples/dnd/makefile.unx?ds=sidebyside diff --git a/samples/dnd/makefile.unx b/samples/dnd/makefile.unx index 00993a6cff..0337fb4179 100644 --- a/samples/dnd/makefile.unx +++ b/samples/dnd/makefile.unx @@ -13,16 +13,23 @@ # under Linux. # +PROGRAM = dnd + CC = gcc -PROGRAM = dnd +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)