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