]>
Commit | Line | Data |
---|---|---|
025e88c5 JS |
1 | # |
2 | # File: makefile.unx | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile for bombs example (UNIX). | |
11 | ||
12 | WXDIR = ../.. | |
13 | ||
14 | # All common UNIX compiler flags and options are now in | |
15 | # this central makefile. | |
16 | include $(WXDIR)/src/makeg95.env | |
17 | ||
18 | OBJECTS = $(OBJDIR)/bombs.$(OBJSUFF) $(OBJDIR)/bombs1.$(OBJSUFF) $(OBJDIR)/game.$(OBJSUFF)\ | |
19 | $(OBJDIR)/bombs_resources.$(OBJSUFF) | |
20 | ||
21 | all: $(OBJDIR) bombs$(GUISUFFIX)$(EXESUFF) | |
22 | ||
23 | wx: | |
24 | ||
25 | $(OBJDIR): | |
26 | mkdir $(OBJDIR) | |
27 | ||
28 | bombs$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB) | |
29 | $(CC) $(LDFLAGS) -o bombs$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS) | |
30 | ||
31 | $(OBJDIR)/bombs.$(OBJSUFF): bombs.$(SRCSUFF) | |
32 | $(CC) -c $(CPPFLAGS) -o $@ bombs.$(SRCSUFF) | |
33 | ||
34 | $(OBJDIR)/bombs1.$(OBJSUFF): bombs1.$(SRCSUFF) | |
35 | $(CC) -c $(CPPFLAGS) -o $@ bombs1.$(SRCSUFF) | |
36 | ||
37 | $(OBJDIR)/game.$(OBJSUFF): game.$(SRCSUFF) | |
38 | $(CC) -c $(CPPFLAGS) -o $@ game.$(SRCSUFF) | |
39 | ||
40 | $(OBJDIR)/bombs_resources.o: bombs.rc | |
41 | $(RESCOMP) -i bombs.rc -o $(OBJDIR)/bombs_resources.o $(RESFLAGS) | |
42 | ||
43 | clean: | |
44 | rm -f $(OBJECTS) bombs$(GUISUFFIX).exe core *.rsc *.res |