summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/zxbox/Makefile')
-rw-r--r--apps/plugins/zxbox/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/apps/plugins/zxbox/Makefile b/apps/plugins/zxbox/Makefile
index 8f26ce6f40..3ca5d300f1 100644
--- a/apps/plugins/zxbox/Makefile
+++ b/apps/plugins/zxbox/Makefile
@@ -43,13 +43,11 @@ all: $(OUTPUT)
43 43
44ifndef SIMVER 44ifndef SIMVER
45$(OBJDIR)/zxbox.elf: $(OBJS) $(LINKFILE) 45$(OBJDIR)/zxbox.elf: $(OBJS) $(LINKFILE)
46 @echo "LD $(notdir $@)" 46 $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
47 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
48 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/zxbox.map 47 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/zxbox.map
49 48
50$(OUTPUT): $(OBJDIR)/zxbox.elf 49$(OUTPUT): $(OBJDIR)/zxbox.elf
51 @echo "OBJCOPY $(notdir $@)" 50 $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
52 @$(OC) -O binary $< $@
53else 51else
54 52
55ifeq ($(SIMVER), sdl) 53ifeq ($(SIMVER), sdl)
@@ -57,8 +55,7 @@ ifeq ($(SIMVER), sdl)
57# This is the SDL simulator version 55# This is the SDL simulator version
58 56
59$(OUTPUT): $(OBJS) 57$(OUTPUT): $(OBJS)
60 @echo "LD $(notdir $@)" 58 $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin -o $@
61 @$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin -o $@
62ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) 59ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
63# 'x' must be kept or you'll have "Win32 error 5" 60# 'x' must be kept or you'll have "Win32 error 5"
64# $ fgrep 5 /usr/include/w32api/winerror.h | head -1 61# $ fgrep 5 /usr/include/w32api/winerror.h | head -1
@@ -76,14 +73,12 @@ include $(TOOLSDIR)/make.inc
76# MEMORYSIZE should be passed on to this makefile with the chosen memory size 73# MEMORYSIZE should be passed on to this makefile with the chosen memory size
77# given in number of MB 74# given in number of MB
78$(LINKFILE): $(LDS) 75$(LINKFILE): $(LDS)
79 @echo "build $(notdir $@)" 76 $(call PRINTS,build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
80 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
81 $(DEFINES) -E -P - >$@ 77 $(DEFINES) -E -P - >$@
82 78
83clean: 79clean:
84 @echo "cleaning zxbox" 80 $(call PRINTS,cleaning zxbox)rm -rf $(OBJDIR)/zxbox
85 @rm -rf $(OBJDIR)/zxbox 81 $(SILENT)rm -f $(OBJDIR)/zxbox.* $(DEPFILE)
86 @rm -f $(OBJDIR)/zxbox.* $(DEPFILE)
87 82
88-include $(DEPFILE) 83-include $(DEPFILE)
89 84