]> git.saurik.com Git - wxWidgets.git/blob - samples/toolbar/makefile.unx
Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
[wxWidgets.git] / samples / toolbar / makefile.unx
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 wxToolBar 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/make.env
18
19 TOOLBARDIR = $(WXDIR)/samples/toolbar
20
21 OBJECTS = $(OBJDIR)/wx_bbar.$(OBJSUFF)
22 TESTOBJECTS = $(OBJDIR)/test.$(OBJSUFF)
23 TESTPROGRAM = $(TOOLBARDIR)/test$(GUISUFFIX)
24
25 LDFLAGS = $(XLIB) -L$(WXDIR)/lib
26
27 XVIEWLDLIBS = -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS)
28 MOTIFLDLIBS = -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS)
29 HPLDLIBS = -lwx_hp -lXm -lXt -lX11 -lm $(HPCOMPLIBS)
30 # Default
31 LDLIBS=$(XVIEWLDLIBS)
32
33 all: $(OBJDIR) $(TESTPROGRAM)
34
35 demo: $(TESTPROGRAM)
36
37 .SUFFIXES:
38
39 wx:
40 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx GUI=$(GUI)
41
42 motif:
43 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif OPT='$(OPT)'
44 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
45
46 demo_motif:
47 $(MAKE) -f makefile.unx all demo GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
48
49 xview:
50 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview OPT='$(OPT)'
51 $(MAKE) -f makefile.unx GUI=-Dwx_xview OPT='$(OPT)'
52
53 demo_ol:
54 $(MAKE) -f makefile.unx all demo GUI=-Dwx_xview OPT='$(OPT)'
55
56 hp:
57 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' OPT='' WARN='-w' \
58 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' CCLEX='cc' \
59 LDLIBS='$(HPLDLIBS)'
60 $(OBJDIR):
61 mkdir $(OBJDIR)
62
63 $(OBJDIR)/test.$(OBJSUFF): test.h test.$(SRCSUFF)
64 $(CC) -c $(CPPFLAGS) -o $@ test.$(SRCSUFF)
65
66 $(TESTPROGRAM): $(OBJDIR)/test.$(OBJSUFF) $(WXLIB)
67 $(CC) $(LDFLAGS) -o test$(GUISUFFIX) $(OBJDIR)/test.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
68
69 cleaneach:
70 rm -f $(OBJECTS) test$(GUISUFFIX) $(OBJDIR)/test.$(OBJSUFF) core
71
72 clean_motif:
73 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleaneach
74
75 clean_ol:
76 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleaneach
77
78 clean_hp:
79 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleaneach
80