6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for resource 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)/resource.$(OBJSUFF)
22 all: $(OBJDIR) resource$(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 resource$(GUISUFFIX): $(OBJDIR)/resource.$(OBJSUFF) $(WXLIB)
51 $(CC) $(LDFLAGS) -o resource$(GUISUFFIX) $(OBJDIR)/resource.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
53 $(OBJDIR)/resource.$(OBJSUFF): resource.$(SRCSUFF) resource.h
54 $(CC) -c $(CPPFLAGS) -o $@ resource.$(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) resource$(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