6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for dialogs 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)/dialogs.$(OBJSUFF)
22 all: $(OBJDIR) dialogs$(GUISUFFIX)
28 $(MAKE) -f makefile.unx 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=
31 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
32 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
35 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx hp
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 dialogs$(GUISUFFIX): $(OBJDIR)/dialogs.$(OBJSUFF) $(WXLIB)
43 $(CC) $(LDFLAGS) -o dialogs$(GUISUFFIX) $(OBJDIR)/dialogs.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
45 $(OBJDIR)/dialogs.$(OBJSUFF): dialogs.$(SRCSUFF)
46 $(CC) -c $(CPPFLAGS) -o $@ dialogs.$(SRCSUFF)
49 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
52 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
55 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
58 rm -f $(OBJECTS) dialogs$(GUISUFFIX) core