? make.diff
RCS file: /cvsroot/scummvm/scummvm-new/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
|
|
|
1 | 1 | # $Header: /cvsroot/scummvm/scummvm-new/Makefile,v 1.4 2002/08/21 17:42:59 fingolfin Exp $ |
2 | 2 | |
3 | 3 | CXX = c++ |
| 4 | AR = ar cru |
| 5 | RANLIB = ranlib |
| 6 | RM = rm -f |
| 7 | MKDIR = mkdir -p |
| 8 | ECHO = echo -n |
| 9 | CAT = cat |
| 10 | RM = rm -f |
| 11 | # recursive version of RM |
| 12 | RM_REC = $(RM) -r |
| 13 | ZIP = zip -q |
| 14 | CP = cp |
| 15 | |
4 | 16 | CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar |
5 | 17 | DEFINES = |
6 | 18 | LDFLAGS := |
… |
… |
|
29 | 41 | include Makefile.common |
30 | 42 | |
31 | 43 | dist: |
32 | | rm -f $(ZIPFILE) |
33 | | zip -q $(ZIPFILE) $(DISTFILES) |
| 44 | $(RM) $(ZIPFILE) |
| 45 | $(ZIP) $(ZIPFILE) $(DISTFILES) |
34 | 46 | |
35 | 47 | # Until we add a nice configure tool, default to the SDL build rules |
36 | 48 | build.rules: |
37 | | cp backends/sdl/build.rules build.rules |
| 49 | $(CP) backends/sdl/build.rules build.rules |
RCS file: /cvsroot/scummvm/scummvm-new/Makefile.common,v
retrieving revision 1.6
diff -u -r1.6 Makefile.common
|
|
|
39 | 39 | $(CXX) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) |
40 | 40 | |
41 | 41 | scumm/libscumm.a: $(SCUMM_OBJS) |
42 | | ar cru $@ $+ |
43 | | ranlib $@ |
| 42 | $(AR) $@ $+ |
| 43 | $(RANLIB) $@ |
44 | 44 | |
45 | 45 | simon/libsimon.a: $(SIMON_OBJS) |
46 | | ar cru $@ $+ |
47 | | ranlib $@ |
| 46 | $(AR) $@ $+ |
| 47 | $(RANLIB) $@ |
48 | 48 | |
49 | 49 | clean: |
50 | | rm -f $(OBJS) $(SCUMM_OBJS) $(SIMON_OBJS) scummvm$(EXEEXT) |
| 50 | $(RM) $(OBJS) $(SCUMM_OBJS) $(SIMON_OBJS) scummvm$(EXEEXT) |
51 | 51 | |
52 | 52 | .PHONY: all clean dist distclean |
53 | 53 | |
… |
… |
|
64 | 64 | DEPFILES = $(wildcard $(patsubst %,%/$(DEPDIR)/*.d,$(MODULES))) |
65 | 65 | |
66 | 66 | .cpp.o: |
67 | | mkdir -p $(*D)/$(DEPDIR) |
| 67 | $(MKDIR) $(*D)/$(DEPDIR) |
68 | 68 | $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o |
69 | | echo -n "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d |
70 | | cat "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d" |
71 | | rm -f "$(*D)/$(DEPDIR)/$(*F).d2" |
| 69 | $(ECHO) "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d |
| 70 | $(CAT) "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d" |
| 71 | $(RM) "$(*D)/$(DEPDIR)/$(*F).d2" |
72 | 72 | |
73 | 73 | -include $(DEPFILES) /dev/null |
74 | 74 | |
75 | 75 | distclean: clean |
76 | | rm -rf $(DEPDIRS) |
| 76 | $(RM_REC) $(DEPDIRS) |