]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/db/makefile.unx
Corrected miniframe.
[wxWidgets.git] / samples / db / makefile.unx
index ff2dd688217da0dc1ee2a840bcf1c939edc41157..9e69037b3d4e7f49fa052e149031f915112954c4 100644 (file)
 # under Linux.
 #
 
+PROGRAM = dbtest
+
 CC = gcc
 
-PROGRAM = dbtest
+OBJECTS = $(PROGRAM).o
+
+# implementation
+
+.SUFFIXES:     .o .cpp
+
+.cpp.o :
+       $(CC) -c `wx-config --cflags` -o $@ $<
 
-$(PROGRAM): $(PROGRAM).o listdb.o
-       $(CC) -o $(PROGRAM) \
-       $(PROGRAM).o listdb.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`
 
-listdb.o: listdb.cpp
-       $(CC) `wx-config --cflags` -c listdb.cpp
-       
 clean: 
        rm -f *.o $(PROGRAM)