]> git.saurik.com Git - wxWidgets.git/blob - samples/minifram/makefile.g95
Added wxMiniFrame
[wxWidgets.git] / samples / minifram / makefile.g95
1 #
2 # File: makefile.unx
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile for Buttonbar example (UNIX).
11 # Change the WXDIR directory, and CPPFLAGS and LDFLAGS, for your system.
12
13 WXDIR = ../..
14
15 # All common UNIX compiler flags and options are now in
16 # this central makefile.
17 include $(WXDIR)/src/makeg95.env
18
19 TESTOBJECTS = $(OBJDIR)/test.$(OBJSUFF) $(OBJDIR)/test_resources.$(OBJSUFF)
20 TESTPROGRAM = test$(GUISUFFIX)
21
22 all: $(OBJDIR) $(TESTPROGRAM)
23
24 demo: $(TESTPROGRAM)
25
26 $(OBJDIR):
27 mkdir $(OBJDIR)
28
29 $(OBJDIR)/test.$(OBJSUFF): test.h test.$(SRCSUFF)
30 $(CC) -c $(CPPFLAGS) -o $@ test.$(SRCSUFF)
31
32 $(TESTPROGRAM): $(TESTOBJECTS) $(WXLIB)
33 $(CC) $(LDFLAGS) -o test$(GUISUFFIX)$(EXESUFF) $(TESTOBJECTS) $(LDLIBS)
34
35 $(OBJDIR)/test_resources.o: test.rc
36 $(RESCOMP) -i test.rc -o $(OBJDIR)/test_resources.o $(RESFLAGS)
37
38 clean:
39 rm -f $(OBJECTS) test$(GUISUFFIX).exe $(TESTOBJECTS) core *.res *.rsc
40