6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for mdi 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)/mdi.$(OBJSUFF)
22 all: $(OBJDIR) mdi$(GUISUFFIX)
25 # cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx
27 $(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=
30 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
33 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' WARN='-w' \
34 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
39 mdi$(GUISUFFIX): $(OBJDIR)/mdi.$(OBJSUFF) $(WXLIB)
40 $(CC) $(LDFLAGS) -o mdi$(GUISUFFIX) $(OBJDIR)/mdi.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
42 $(OBJDIR)/mdi.$(OBJSUFF): mdi.$(SRCSUFF) mdi.h
43 $(CC) -c $(CPPFLAGS) -o $@ mdi.$(SRCSUFF)
46 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
49 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
52 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
55 rm -f $(OBJECTS) mdi$(GUISUFFIX) core