]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/makefile.unx
added missing methods/removed duplicated base methods
[wxWidgets.git] / samples / controls / makefile.unx
index 28e0924dd8ea4981cd4fa982e2e0f36290a65ae7..ebf2d915758ce9851118d322cbe3be62eeca98db 100644 (file)
 # under Linux.
 #
 
+PROGRAM = controls
+
 CC = gcc
 
-PROGRAM = controls
+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)