]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/checklst/makefile.unx
Changed greying out to very crude algorithm, just draining colour
[wxWidgets.git] / samples / checklst / makefile.unx
index 9b7e114a7f82110953915073d529954c8c8829fa..851d4cfca37cfcf5c426f6fc0ff2bd8f589d2b1d 100644 (file)
 # under Linux.
 #
 
-CC = gcc
-
 PROGRAM = checklst
 
-$(PROGRAM): $(PROGRAM).o
-       $(CC) -o $(PROGRAM) \
-       $(PROGRAM).o `wx-config --libs`
+CXX = $(shell wx-config --cxx)
+
+OBJECTS = $(PROGRAM).o
+
+# implementation
+
+.SUFFIXES:     .o .cpp
+
+.cpp.o :
+       $(CXX) -c `wx-config --cxxflags` -o $@ $<
+
+all:    $(PROGRAM)
 
-$(PROGRAM).o: $(PROGRAM).cpp
-       $(CC) `wx-config --cflags` -c $(PROGRAM).cpp
+$(PROGRAM):    $(OBJECTS)
+       $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
 
 clean: 
        rm -f *.o $(PROGRAM)