6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for wxToolBar example (UNIX).
11 # Change the WXDIR directory, and CPPFLAGS and LDFLAGS, for your system.
15 # All common UNIX compiler flags and options are now in
16 # this central makefile.
17 include $(WXDIR)/src/make.env
19 TOOLBARDIR = $(WXDIR)/samples/toolbar
21 OBJECTS = $(OBJDIR)/wx_bbar.$(OBJSUFF)
22 TESTOBJECTS = $(OBJDIR)/test.$(OBJSUFF)
23 TESTPROGRAM = $(TOOLBARDIR)/test$(GUISUFFIX)
25 LDFLAGS = $(XLIB) -L$(WXDIR)/lib
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)
33 all: $(OBJDIR) $(TESTPROGRAM)
40 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx GUI=$(GUI)
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=
47 $(MAKE) -f makefile.unx all demo GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
50 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview OPT='$(OPT)'
51 $(MAKE) -f makefile.unx GUI=-Dwx_xview OPT='$(OPT)'
54 $(MAKE) -f makefile.unx all demo GUI=-Dwx_xview OPT='$(OPT)'
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' \
63 $(OBJDIR)/test.$(OBJSUFF): test.h test.$(SRCSUFF)
64 $(CC) -c $(CPPFLAGS) -o $@ test.$(SRCSUFF)
66 $(TESTPROGRAM): $(OBJDIR)/test.$(OBJSUFF) $(WXLIB)
67 $(CC) $(LDFLAGS) -o test$(GUISUFFIX) $(OBJDIR)/test.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
70 rm -f $(OBJECTS) test$(GUISUFFIX) $(OBJDIR)/test.$(OBJSUFF) core
73 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleaneach
76 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleaneach
79 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleaneach