diff options
Diffstat (limited to 'tools/functions.make')
-rw-r--r-- | tools/functions.make | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/functions.make b/tools/functions.make index dd87377f87..083e3eafeb 100644 --- a/tools/functions.make +++ b/tools/functions.make | |||
@@ -29,19 +29,17 @@ c2obj = $(subst .c,.o,$(subst .S,.o,$(subst $(ROOTDIR),$(BUILDDIR),$(1)))) | |||
29 | 29 | ||
30 | # calculate dependencies for a list of source files $(2) and output them | 30 | # calculate dependencies for a list of source files $(2) and output them |
31 | # to a file $(1) | 31 | # to a file $(1) |
32 | |||
33 | mkdepfile = $(shell \ | 32 | mkdepfile = $(shell \ |
34 | for each in $(2); do \ | 33 | $(CC) $(PPCFLAGS) $(OTHER_INC) -MG -MM -include config.h $(2) | \ |
35 | obj=`echo $$each | sed -e 's/\.[cS]/.o/' -e 's:$(ROOTDIR):$(BUILDDIR):'`; \ | 34 | $(TOOLSDIR)/addtargetdir.pl $(ROOTDIR) $(BUILDDIR) | \ |
36 | $(CC) $(PPCFLAGS) $(OTHER_INC) -MG -MM -include config.h -MT "$$obj" $$each 2>/dev/null; \ | 35 | sed -e "s: lang.h: $(BUILDDIR)/lang.o:" \ |
37 | done | sed -e "s: lang.h: $(BUILDDIR)/lang.o:" \ | ||
38 | -e "s: sysfont.h: $(BUILDDIR)/sysfont.h:" \ | 36 | -e "s: sysfont.h: $(BUILDDIR)/sysfont.h:" \ |
39 | -e "s: max_language_size.h: $(BUILDDIR)/max_language_size.h:" \ | 37 | -e "s: max_language_size.h: $(BUILDDIR)/max_language_size.h:" \ |
40 | -e "s: bitmaps/: $(BUILDDIR)/bitmaps/:g" \ | 38 | -e "s: bitmaps/: $(BUILDDIR)/bitmaps/:g" \ |
41 | -e "s: pluginbitmaps/: $(BUILDDIR)/pluginbitmaps/:g" \ | 39 | -e "s: pluginbitmaps/: $(BUILDDIR)/pluginbitmaps/:g" \ |
42 | -e "s: lib/: $(APPSDIR)/plugins/lib/:g" \ | 40 | -e "s: lib/: $(APPSDIR)/plugins/lib/:g" \ |
43 | -e "s: codeclib.h: $(APPSDIR)/codecs/lib/codeclib.h:g" \ | 41 | -e "s: codeclib.h: $(APPSDIR)/codecs/lib/codeclib.h:g" \ |
44 | > $(1); ) | 42 | > $(1) ) |
45 | 43 | ||
46 | # function to create .bmp dependencies | 44 | # function to create .bmp dependencies |
47 | bmpdepfile = $(shell \ | 45 | bmpdepfile = $(shell \ |