]> git.saurik.com Git - wxWidgets.git/blame - samples/toolbar/makefile.unx
removed #define wxToolBarGTK
[wxWidgets.git] / samples / toolbar / makefile.unx
CommitLineData
14d1ccd8
JS
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
13WXDIR = ../..
14
15# All common UNIX compiler flags and options are now in
16# this central makefile.
17include $(WXDIR)/src/make.env
18
19TOOLBARDIR = $(WXDIR)/samples/toolbar
20
21OBJECTS = $(OBJDIR)/wx_bbar.$(OBJSUFF)
22TESTOBJECTS = $(OBJDIR)/test.$(OBJSUFF)
23TESTPROGRAM = $(TOOLBARDIR)/test$(GUISUFFIX)
24
25LDFLAGS = $(XLIB) -L$(WXDIR)/lib
26
27XVIEWLDLIBS = -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS)
28MOTIFLDLIBS = -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS)
29HPLDLIBS = -lwx_hp -lXm -lXt -lX11 -lm $(HPCOMPLIBS)
30# Default
31LDLIBS=$(XVIEWLDLIBS)
32
33all: $(OBJDIR) $(TESTPROGRAM)
34
35demo: $(TESTPROGRAM)
36
37.SUFFIXES:
38
39wx:
40 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx GUI=$(GUI)
41
42motif:
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
46demo_motif:
47 $(MAKE) -f makefile.unx all demo GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
48
49xview:
50 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview OPT='$(OPT)'
51 $(MAKE) -f makefile.unx GUI=-Dwx_xview OPT='$(OPT)'
52
53demo_ol:
54 $(MAKE) -f makefile.unx all demo GUI=-Dwx_xview OPT='$(OPT)'
55
56hp:
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
69cleaneach:
70 rm -f $(OBJECTS) test$(GUISUFFIX) $(OBJDIR)/test.$(OBJSUFF) core
71
72clean_motif:
73 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleaneach
74
75clean_ol:
76 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleaneach
77
78clean_hp:
79 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleaneach
80