diff options
Diffstat (limited to 'apps/plugins/searchengine/Makefile')
-rw-r--r-- | apps/plugins/searchengine/Makefile | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/apps/plugins/searchengine/Makefile b/apps/plugins/searchengine/Makefile index beadac7ea1..1c71c9b30d 100644 --- a/apps/plugins/searchengine/Makefile +++ b/apps/plugins/searchengine/Makefile | |||
@@ -31,13 +31,11 @@ all: $(OUTPUT) | |||
31 | 31 | ||
32 | ifndef SIMVER | 32 | ifndef SIMVER |
33 | $(OBJDIR)/searchengine.elf: $(OBJS) $(LINKFILE) | 33 | $(OBJDIR)/searchengine.elf: $(OBJS) $(LINKFILE) |
34 | @echo "LD $(notdir $@)" | 34 | $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ |
35 | @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ | ||
36 | -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/searchengine.map | 35 | -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/searchengine.map |
37 | 36 | ||
38 | $(OUTPUT): $(OBJDIR)/searchengine.elf | 37 | $(OUTPUT): $(OBJDIR)/searchengine.elf |
39 | @echo "OBJCOPY $(notdir $@)" | 38 | $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ |
40 | @$(OC) -O binary $< $@ | ||
41 | else | 39 | else |
42 | 40 | ||
43 | ifeq ($(SIMVER), x11) | 41 | ifeq ($(SIMVER), x11) |
@@ -45,8 +43,7 @@ ifeq ($(SIMVER), x11) | |||
45 | # This is the X11 simulator version | 43 | # This is the X11 simulator version |
46 | 44 | ||
47 | $(OUTPUT): $(OBJS) | 45 | $(OUTPUT): $(OBJS) |
48 | @echo "LD $(notdir $@)" | 46 | $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin -o $@ |
49 | @$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin -o $@ | ||
50 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 47 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
51 | # 'x' must be kept or you'll have "Win32 error 5" | 48 | # 'x' must be kept or you'll have "Win32 error 5" |
52 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 49 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |
@@ -61,8 +58,7 @@ ifeq ($(SIMVER), sdl) | |||
61 | # This is the SDL simulator version | 58 | # This is the SDL simulator version |
62 | 59 | ||
63 | $(OUTPUT): $(OBJS) | 60 | $(OUTPUT): $(OBJS) |
64 | @echo "LD $(notdir $@)" | 61 | $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin -o $@ |
65 | @$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin -o $@ | ||
66 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 62 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
67 | # 'x' must be kept or you'll have "Win32 error 5" | 63 | # 'x' must be kept or you'll have "Win32 error 5" |
68 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 64 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |
@@ -78,9 +74,8 @@ DLLTOOLFLAGS = --export-all | |||
78 | DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin | 74 | DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin |
79 | 75 | ||
80 | $(OUTPUT): $(OBJS) | 76 | $(OUTPUT): $(OBJS) |
81 | @echo "DLL $(notdir $@)" | 77 | $(call PRINTS,DLL $(@F))$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) |
82 | @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) | 78 | $(SILENT)$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ |
83 | @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ | ||
84 | $(BUILDDIR)/libplugin.a -o $@ | 79 | $(BUILDDIR)/libplugin.a -o $@ |
85 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 80 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
86 | # 'x' must be kept or you'll have "Win32 error 5" | 81 | # 'x' must be kept or you'll have "Win32 error 5" |
@@ -99,14 +94,12 @@ include $(TOOLSDIR)/make.inc | |||
99 | # MEMORYSIZE should be passed on to this makefile with the chosen memory size | 94 | # MEMORYSIZE should be passed on to this makefile with the chosen memory size |
100 | # given in number of MB | 95 | # given in number of MB |
101 | $(LINKFILE): $(LDS) | 96 | $(LINKFILE): $(LDS) |
102 | @echo "build $(notdir $@)" | 97 | $(call PRINTS,build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \ |
103 | @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \ | ||
104 | $(DEFINES) -E -P - >$@ | 98 | $(DEFINES) -E -P - >$@ |
105 | 99 | ||
106 | clean: | 100 | clean: |
107 | @echo "cleaning searchengine" | 101 | $(call PRINTS,cleaning searchengine)rm -rf $(OBJDIR)/searchengine |
108 | @rm -rf $(OBJDIR)/searchengine | 102 | $(SILENT)rm -f $(OBJDIR)/searchengine.* $(DEPFILE) |
109 | @rm -f $(OBJDIR)/searchengine.* $(DEPFILE) | ||
110 | 103 | ||
111 | -include $(DEPFILE) | 104 | -include $(DEPFILE) |
112 | 105 | ||