]> git.saurik.com Git - wxWidgets.git/blame - utils/wxprop/src/makefile.g95
Removed some bugs
[wxWidgets.git] / utils / wxprop / src / makefile.g95
CommitLineData
457814b5
JS
1#
2# File: makefile.g95
3# Author: Julian Smart
4# Created: 1996
5#
6# "%W% %G%"
7#
8# Makefile : Builds wxProp library and example under GNU-WIN32
9#
10WXDIR = ../../..
11include $(WXDIR)/src/makeg95.env
12
13PROPDIR = $(WXDIR)/utils/wxprop
14PROPLIB = $(PROPDIR)/lib/$(LIBPREFIX)wxprop.$(LIBSUFF)
15THISDIR = $(PROPDIR)/src
16
17OBJECTS = $(OBJDIR)/prop.$(OBJSUFF) $(OBJDIR)/proplist.$(OBJSUFF) $(OBJDIR)/propform.$(OBJSUFF)
18TESTOBJECTS = $(OBJDIR)/test.$(OBJSUFF) $(OBJDIR)/test_resources.$(OBJSUFF)
19
20LDFLAGS = -Wl,--subsystem,windows -mwindows -L$(WXDIR)/lib -L../lib
21LDLIBS=-lwxprop $(LIBS)
22
23all: $(OBJDIR) $(PROPLIB)
24
25test: $(OBJDIR) test.exe
26
27$(OBJDIR):
28 mkdir $(OBJDIR)
29
30$(PROPLIB): $(OBJECTS)
31 rm -f $@
32 ar $(AROPTIONS) $@ $(OBJECTS)
33 $(RANLIB) $@
34
35$(OBJDIR)/test.$(OBJSUFF): test.h test.$(SRCSUFF) $(PROPLIB)
36 $(CC) -c $(CPPFLAGS) -o $@ test.$(SRCSUFF)
37
38test.exe: $(TESTOBJECTS)
39 $(CC) $(LDFLAGS) -o test$(GUISUFFIX)$(EXESUFF) $(TESTOBJECTS) $(LDLIBS)
40
41$(OBJDIR)/prop.$(OBJSUFF): prop.h prop.$(SRCSUFF)
42 $(CC) -c $(CPPFLAGS) -o $@ prop.$(SRCSUFF)
43
44$(OBJDIR)/proplist.$(OBJSUFF): proplist.h prop.h proplist.$(SRCSUFF)
45 $(CC) -c $(CPPFLAGS) -o $@ proplist.$(SRCSUFF)
46
47$(OBJDIR)/propform.$(OBJSUFF): propform.h prop.h propform.$(SRCSUFF)
48 $(CC) -c $(CPPFLAGS) -o $@ propform.$(SRCSUFF)
49
50$(OBJDIR)/test_resources.o: test.rc
51 $(RESCOMP) -i test.rc -o $(OBJDIR)/test_resources.o $(RESFLAGS)
52
53clean:
54 rm -f *.$(OBJSUFF) $(PROPLIB) objects/test.o *.exe *.res *.map *.rsc