]> git.saurik.com Git - wxWidgets.git/blobdiff - src/makeprog.env.in
some compilation fixes atttempts for solaris
[wxWidgets.git] / src / makeprog.env.in
index 9bad0a0c9ec634f7b5436c232c199edbee015cd9..667568137ce04af1681581c14292fe777abc1d99 100644 (file)
@@ -3,6 +3,18 @@
 # Replace this with your own path if necessary
 WXDIR       = $(WXWIN)
 
+# Clears all default suffixes
+.SUFFIXES:     .o .cpp .c .cxx
+
+.c.o :
+       $(CCC) -c $(CFLAGS) -o $@ $<
+
+.cpp.o :
+       $(CC) -c $(CPPFLAGS) -o $@ $<
+
+.cxx.o :
+       $(CC) -c $(CPPFLAGS) -o $@ $<
+
 # this is for using the samples in ../samples/xxxxx
 pretop_srcdir = @top_srcdir@
 top_srcdir = ../$(pretop_srcdir)
@@ -11,7 +23,7 @@ include ../../src/make.env
 
 all:    $(PROGRAM)
 
-$(PROGRAM):    $(OBJECTS) ../../lib/$(WXLIB)
+$(PROGRAM):    $(OBJECTS) ../../lib/@WX_TARGET_LIBRARY@
        $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(LDLIBS)
 
 clean: