6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for docview example (UNIX).
14 # All common UNIX compiler flags and options are now in
15 # this central makefile.
16 include $(WXDIR)/src/make.env
18 OBJECTS = $(OBJDIR)/docview.$(OBJSUFF) $(OBJDIR)/view.$(OBJSUFF) $(OBJDIR)/doc.$(OBJSUFF)
22 all: $(OBJDIR) wx$(GUISUFFIX) docview$(GUISUFFIX)
25 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
28 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
30 $(MAKE) -f makefile.unx GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
33 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
36 $(MAKE) -f makefile,unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' WARN='-w' \
37 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
42 docview$(GUISUFFIX): $(OBJECTS) $(WXLIB)
43 $(CC) $(LDFLAGS) -o docview$(GUISUFFIX) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
45 $(OBJDIR)/docview.$(OBJSUFF): docview.$(SRCSUFF) docview.h doc.h view.h
46 $(CC) -c $(CPPFLAGS) -o $@ docview.$(SRCSUFF)
48 $(OBJDIR)/doc.$(OBJSUFF): doc.$(SRCSUFF) doc.h
49 $(CC) -c $(CPPFLAGS) -o $@ doc.$(SRCSUFF)
51 $(OBJDIR)/view.$(OBJSUFF): view.$(SRCSUFF) view.h
52 $(CC) -c $(CPPFLAGS) -o $@ view.$(SRCSUFF)
55 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
58 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
61 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
64 rm -f $(OBJECTS) docview$(GUISUFFIX) core