]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxtree/src/makefile.g95
Numerous changes to comply with use of wxCoord.
[wxWidgets.git] / utils / wxtree / src / makefile.g95
index a7b7f866c16a778647d263c139958a4c4a689377..721817437c4e3796bdff9f59e3ee09698c6e1149 100644 (file)
@@ -1,48 +1,16 @@
 #
-# File:                makefile.g95
-# Author:      Julian Smart
-# Created:     1996
+# File:         makefile.g95
+# Author:       Julian Smart
+# Created:      1999
+# Updated:
+# Copyright:    (c) Julian Smart, 1999
 #
-# "%W% %G%"
-#
-# Makefile : Builds wxTree library and example under GNU-WIN32
-#
-WXDIR = ../../..
-include $(WXDIR)/src/makeg95.env
-
-PROPDIR = $(WXDIR)/utils/wxtree
-TREELIB = $(PROPDIR)/lib/$(LIBPREFIX)wxtree.$(LIBSUFF)
-THISDIR = $(PROPDIR)/src
-
-OBJECTS = $(OBJDIR)/wxtree.$(OBJSUFF)
-TESTOBJECTS = $(OBJDIR)/test.$(OBJSUFF) $(OBJDIR)/test_resources.$(OBJSUFF)
-
-LDFLAGS =  -Wl,--subsystem,windows -mwindows -L$(WXDIR)/lib -L../lib
-LDLIBS=-lwxtree $(LIBS)
-
-all:    $(OBJDIR) $(TREELIB)
-
-test:   $(OBJDIR) test.exe
-
-$(OBJDIR):
-       mkdir $(OBJDIR)
-
-$(TREELIB):      $(OBJECTS)
-       rm -f $@
-       ar $(AROPTIONS) $@ $(OBJECTS)
-       $(RANLIB) $@
-
-$(OBJDIR)/test.$(OBJSUFF):             test.h test.$(SRCSUFF) $(TREELIB)
-       $(CC) -c $(CPPFLAGS) -o $@ test.$(SRCSUFF)
+# Makefile for wxWindows sample (Cygwin/Mingw32).
 
-test.exe: $(TESTOBJECTS)
-       $(CC) $(LDFLAGS) -o test$(GUISUFFIX)$(EXESUFF) $(TESTOBJECTS) $(LDLIBS)
+WXDIR = $(WXWIN)
 
-$(OBJDIR)/wxtree.$(OBJSUFF):      wxtree.h wxtree.$(SRCSUFF)
-       $(CC) -c $(CPPFLAGS) -o $@ wxtree.$(SRCSUFF)
+TARGET=test
+OBJECTS = $(TARGET).o wxtree.o
 
-$(OBJDIR)/test_resources.o:  test.rc
-       $(RESCOMP) -i test.rc -o $(OBJDIR)/test_resources.o $(RESFLAGS)
+include $(WXDIR)/src/makeprog.g95
 
-clean:
-       rm -f *.$(OBJSUFF) $(TREELIB) objects/test.o *.exe *.res *.map *.rsc