]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/checklst/makefile.unx
fix for wxExecute(subprocess which produces a lot of output) bug
[wxWidgets.git] / samples / checklst / makefile.unx
index 9b7e114a7f82110953915073d529954c8c8829fa..458356356e4ca83e7ffa55ec18d41f7e1517f449 100644 (file)
 # under Linux.
 #
 
+PROGRAM = checklst
+
 CC = gcc
 
-PROGRAM = checklst
+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)