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/makeg95.env
18 OBJECTS = $(OBJDIR)/docview.$(OBJSUFF) $(OBJDIR)/view.$(OBJSUFF) $(OBJDIR)/doc.$(OBJSUFF)\
19 $(OBJDIR)/docview_resources.$(OBJSUFF)
22 all: $(OBJDIR) docview$(GUISUFFIX)
27 docview$(GUISUFFIX): $(OBJECTS) $(WXLIB)
28 $(CC) $(LDFLAGS) -o docview$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
30 $(OBJDIR)/docview.$(OBJSUFF): docview.$(SRCSUFF) docview.h doc.h view.h
31 $(CC) -c $(CPPFLAGS) -o $@ docview.$(SRCSUFF)
33 $(OBJDIR)/doc.$(OBJSUFF): doc.$(SRCSUFF) doc.h
34 $(CC) -c $(CPPFLAGS) -o $@ doc.$(SRCSUFF)
36 $(OBJDIR)/view.$(OBJSUFF): view.$(SRCSUFF) view.h
37 $(CC) -c $(CPPFLAGS) -o $@ view.$(SRCSUFF)
39 $(OBJDIR)/docview_resources.o: docview.rc
40 $(RESCOMP) -i docview.rc -o $(OBJDIR)/docview_resources.o $(RESFLAGS)
43 rm -f $(OBJECTS) docview$(GUISUFFIX).exe core *.rsc *.res