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 OGLDIR = $(WXDIR)/utils/ogl
19 OGLINC = $(OGLDIR)/src
20 OGLLIB = $(OGLDIR)/lib/libogl$(GUISUFFIX).a
22 OBJECTS = $(OBJDIR)/ogledit.$(OBJSUFF) $(OBJDIR)/view.$(OBJSUFF) $(OBJDIR)/doc.$(OBJSUFF) $(OBJDIR)/palette.$(OBJSUFF)
24 LDFLAGS = $(XLIB) -L$(WXDIR)/lib -L$(OGLDIR)/lib -L$(MFDIR)/lib
26 XVIEWLDLIBS = -logl_ol -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS)
27 MOTIFLDLIBS = -logl_motif -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS)
28 HPLDLIBS = -logl_motif -lwx_hp -lXm -lXt -lX11 -lm $(COMPLIBS)
30 CPPFLAGS = -I$(OGLINC) -I$(PROLOGINC) -I$(MFINC) $(XINCLUDE) $(INC) $(GUI) -DDEBUG='$(DEBUG)' $(DEBUGFLAGS) $(WARN) $(OPTIONS) -DPROLOGIO
34 all: $(OBJDIR) ogledit$(GUISUFFIX)
37 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
40 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
42 $(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=
45 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
48 $(MAKE) -f makefile,unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='' WARN='-w' \
49 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
54 ogledit$(GUISUFFIX): $(OBJECTS) $(WXLIB)
55 $(CC) $(LDFLAGS) -o ogledit$(GUISUFFIX) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
57 $(OBJDIR)/ogledit.$(OBJSUFF): ogledit.$(SRCSUFF) ogledit.h doc.h view.h palette.h
58 $(CC) -c $(CPPFLAGS) -o $@ ogledit.$(SRCSUFF)
60 $(OBJDIR)/doc.$(OBJSUFF): doc.$(SRCSUFF) doc.h
61 $(CC) -c $(CPPFLAGS) -o $@ doc.$(SRCSUFF)
63 $(OBJDIR)/view.$(OBJSUFF): view.$(SRCSUFF) view.h
64 $(CC) -c $(CPPFLAGS) -o $@ view.$(SRCSUFF)
66 $(OBJDIR)/palette.$(OBJSUFF): palette.$(SRCSUFF) palette.h
67 $(CC) -c $(CPPFLAGS) -o $@ palette.$(SRCSUFF)
70 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
73 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
76 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
79 rm -f $(OBJECTS) ogledit(GUISUFFIX) core