#
-# 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