]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/db/makefile.unx
updated opengl
[wxWidgets.git] / samples / db / makefile.unx
index ff2dd688217da0dc1ee2a840bcf1c939edc41157..5bfccd1f9166cd53f52c326ba1419c5fef449b19 100644 (file)
 # under Linux.
 #
 
+PROGRAM = dbtest
+
 CC = gcc
 
-PROGRAM = dbtest
+OBJECTS = $(PROGRAM).o listdb.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)