summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/Makefile')
-rw-r--r--apps/plugins/doom/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/plugins/doom/Makefile b/apps/plugins/doom/Makefile
index 678e283427..90289099df 100644
--- a/apps/plugins/doom/Makefile
+++ b/apps/plugins/doom/Makefile
@@ -3,7 +3,10 @@
3# $Id$ 3# $Id$
4# 4#
5# $Log$ 5# $Log$
6# Revision 1.6 2006/09/29 20:04:35 barrywardell 6# Revision 1.7 2006/10/22 00:21:56 amiconn
7# Speed up build process in general by using internal functions of make instead of spawning sub-shells where possible.
8#
9# Revision 1.6 2006-09-29 20:04:35 barrywardell
7# Cleaner implementation of the recent OSX simulator build fix. No need to define SHARED_FLAG in each Makefile. Just have configure create it in the root Makefile instead. 10# Cleaner implementation of the recent OSX simulator build fix. No need to define SHARED_FLAG in each Makefile. Just have configure create it in the root Makefile instead.
8# 11#
9# Revision 1.5 2006-09-29 16:15:08 barrywardell 12# Revision 1.5 2006-09-29 16:15:08 barrywardell
@@ -76,12 +79,12 @@ all: $(OUTPUT)
76 79
77ifndef SIMVER 80ifndef SIMVER
78$(OBJDIR)/doom.elf: $(OBJS) $(LINKFILE) 81$(OBJDIR)/doom.elf: $(OBJS) $(LINKFILE)
79 @echo "LD "`basename $@` 82 @echo "LD $(notdir $@)"
80 @$(CC) $(GCCOPTS) $(LDFLAGS) -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc\ 83 @$(CC) $(GCCOPTS) $(LDFLAGS) -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc\
81 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/doom.map 84 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/doom.map
82 85
83$(OUTPUT): $(OBJDIR)/doom.elf 86$(OUTPUT): $(OBJDIR)/doom.elf
84 @echo "OBJCOPY "`basename $@` 87 @echo "OBJCOPY $(notdir $@)"
85 @$(OC) -O binary $< $@ 88 @$(OC) -O binary $< $@
86else 89else
87 90
@@ -123,7 +126,7 @@ DLLTOOLFLAGS = --export-all
123DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 126DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
124 127
125$(OUTPUT): $(OBJS) 128$(OUTPUT): $(OBJS)
126 @echo "DLL "`basename $@` 129 @echo "DLL $(notdir $@)"
127 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) 130 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
128 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ 131 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
129 $(BUILDDIR)/libplugin.a -o $@ 132 $(BUILDDIR)/libplugin.a -o $@
@@ -144,7 +147,7 @@ include $(TOOLSDIR)/make.inc
144# MEMORYSIZE should be passed on to this makefile with the chosen memory size 147# MEMORYSIZE should be passed on to this makefile with the chosen memory size
145# given in number of MB 148# given in number of MB
146$(LINKFILE): $(LDS) 149$(LINKFILE): $(LDS)
147 @echo "build "`basename $@` 150 @echo "build $(notdir $@)"
148 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) \ 151 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) \
149 -E -P - >$@ 152 -E -P - >$@
150 153