]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/caret/makefile.unx
fixed clipping of items with icons text in report mode
[wxWidgets.git] / samples / caret / makefile.unx
index f3803608065a71b5dcbb7bac5080ce03e26a91a7..798e3973be208db9332bd5f05c2dadf764d423a0 100644 (file)
@@ -17,12 +17,19 @@ CC = gcc
 
 PROGRAM = caret
 
-$(PROGRAM): $(PROGRAM).o
-       $(CC) -o $(PROGRAM) \
-       $(PROGRAM).o `wx-config --libs`
+OBJECTS = $(PROGRAM).o
 
-$(PROGRAM).o: $(PROGRAM).cpp
-       $(CC) `wx-config --cflags` -c $(PROGRAM).cpp
+# implementation
+
+.SUFFIXES:     .o .cpp
+
+.cpp.o :
+       $(CC) -c `wx-config --cflags` -o $@ $<
+
+all:    $(PROGRAM)
+
+$(PROGRAM):    $(OBJECTS)
+       $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
 
 clean: 
        rm -f *.o $(PROGRAM)