]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dialogs/makefile.unx
fixed mouse input handling in wxUniv: the static boxes ust be transparent
[wxWidgets.git] / samples / dialogs / makefile.unx
index 9307e84c82e22d6a85f644d53f6235614d2eda01..c9be335bcb111dc0df141dba2ea3fbcac4b10a5b 100644 (file)
 # under Linux.
 #
 
-CC = gcc
-
 PROGRAM = dialogs
 
-$(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)