6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for layout 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)/layout.$(OBJSUFF)
22 all: $(OBJDIR) layout$(GUISUFFIX)
25 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
28 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
31 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx hp
33 # For SGI, include -lPW on your LDLIBS
35 $(MAKE) -f makefile.unx all GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' WXLIB=$(WXDIR)/lib/libwx_motif.a OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
38 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' LDLIBS='$(XVIEWLDLIBS)'
41 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC OPT='' DEBUG='$(DEBUG)' WARN='-w' \
42 XINCLUDE='$(HPXINCLUDE)' \
50 layout$(GUISUFFIX): $(OBJDIR)/layout.$(OBJSUFF) $(WXLIB)
51 $(CC) $(LDFLAGS) -o layout$(GUISUFFIX) $(OBJDIR)/layout.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
53 $(OBJDIR)/layout.$(OBJSUFF): layout.$(SRCSUFF) layout.h
54 $(CC) -c $(CPPFLAGS) -o $@ layout.$(SRCSUFF)
57 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
60 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
63 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
66 rm -f $(OBJECTS) layout$(GUISUFFIX) core
69 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_ol
72 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_motif
75 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_hp