]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dialogs/makefile.unx
no changes, testing cvs logging
[wxWidgets.git] / samples / dialogs / makefile.unx
index 9307e84c82e22d6a85f644d53f6235614d2eda01..9c9fb558689eb4745b5890cba4dedb3b6e6c97f8 100644 (file)
 # under Linux.
 #
 
+PROGRAM = dialogs
+
 CC = gcc
 
-PROGRAM = dialogs
+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)