6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for Forty Thieves 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)/forty.$(OBJSUFF) $(OBJDIR)/canvas.$(OBJSUFF) $(OBJDIR)/card.$(OBJSUFF)\
19 $(OBJDIR)/game.$(OBJSUFF) $(OBJDIR)/pile.$(OBJSUFF) $(OBJDIR)/playerdg.$(OBJSUFF)\
20 $(OBJDIR)/scoredg.$(OBJSUFF) $(OBJDIR)/scorefil.$(OBJSUFF)\
21 $(OBJDIR)/forty_resources.$(OBJSUFF)
23 all: $(OBJDIR) forty$(GUISUFFIX)$(EXESUFF)
30 forty$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
31 $(CC) $(LDFLAGS) -o forty$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
33 $(OBJDIR)/forty.$(OBJSUFF): forty.$(SRCSUFF)
34 $(CC) -c $(CPPFLAGS) -o $@ forty.$(SRCSUFF)
36 $(OBJDIR)/canvas.$(OBJSUFF): canvas.$(SRCSUFF)
37 $(CC) -c $(CPPFLAGS) -o $@ canvas.$(SRCSUFF)
39 $(OBJDIR)/card.$(OBJSUFF): card.$(SRCSUFF)
40 $(CC) -c $(CPPFLAGS) -o $@ card.$(SRCSUFF)
42 $(OBJDIR)/playerdg.$(OBJSUFF): playerdg.$(SRCSUFF)
43 $(CC) -c $(CPPFLAGS) -o $@ playerdg.$(SRCSUFF)
45 $(OBJDIR)/scoredg.$(OBJSUFF): scoredg.$(SRCSUFF)
46 $(CC) -c $(CPPFLAGS) -o $@ scoredg.$(SRCSUFF)
48 $(OBJDIR)/scorefil.$(OBJSUFF): scorefil.$(SRCSUFF)
49 $(CC) -c $(CPPFLAGS) -o $@ scorefil.$(SRCSUFF)
51 $(OBJDIR)/pile.$(OBJSUFF): pile.$(SRCSUFF)
52 $(CC) -c $(CPPFLAGS) -o $@ pile.$(SRCSUFF)
54 $(OBJDIR)/game.$(OBJSUFF): game.$(SRCSUFF)
55 $(CC) -c $(CPPFLAGS) -o $@ game.$(SRCSUFF)
57 $(OBJDIR)/forty_resources.o: forty.rc
58 $(RESCOMP) -i forty.rc -o $(OBJDIR)/forty_resources.o $(RESFLAGS)
61 rm -f $(OBJECTS) forty$(GUISUFFIX).exe core *.rsc *.res