]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dnd/makefile.unx
added wxADJUST_MINSIZE sizer flag
[wxWidgets.git] / samples / dnd / makefile.unx
index 00993a6cffdcd4c5921af174276307d24b143908..0337fb4179a2c1d06712974b277c8dcb366150ba 100644 (file)
 # 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)