8 # Makefile : Builds wxTree library and example under GNU-WIN32
11 include $(WXDIR)/src/makeg95.env
13 PROPDIR = $(WXDIR)/utils/wxtree
14 TREELIB = $(PROPDIR)/lib/$(LIBPREFIX)wxtree.$(LIBSUFF)
15 THISDIR = $(PROPDIR)/src
17 OBJECTS = $(OBJDIR)/wxtree.$(OBJSUFF)
18 TESTOBJECTS = $(OBJDIR)/test.$(OBJSUFF) $(OBJDIR)/test_resources.$(OBJSUFF)
20 LDFLAGS = -Wl,--subsystem,windows -mwindows -L$(WXDIR)/lib -L../lib
21 LDLIBS=-lwxtree $(LIBS)
23 all: $(OBJDIR) $(TREELIB)
25 test: $(OBJDIR) test.exe
30 $(TREELIB): $(OBJECTS)
32 ar $(AROPTIONS) $@ $(OBJECTS)
35 $(OBJDIR)/test.$(OBJSUFF): test.h test.$(SRCSUFF) $(TREELIB)
36 $(CC) -c $(CPPFLAGS) -o $@ test.$(SRCSUFF)
38 test.exe: $(TESTOBJECTS)
39 $(CC) $(LDFLAGS) -o test$(GUISUFFIX)$(EXESUFF) $(TESTOBJECTS) $(LDLIBS)
41 $(OBJDIR)/wxtree.$(OBJSUFF): wxtree.h wxtree.$(SRCSUFF)
42 $(CC) -c $(CPPFLAGS) -o $@ wxtree.$(SRCSUFF)
44 $(OBJDIR)/test_resources.o: test.rc
45 $(RESCOMP) -i test.rc -o $(OBJDIR)/test_resources.o $(RESFLAGS)
48 rm -f *.$(OBJSUFF) $(TREELIB) objects/test.o *.exe *.res *.map *.rsc