diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-05-07 22:41:17 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-05-07 22:41:17 +0000 |
commit | b8a23f9e4980e6a041d750c325ab2845aea8488a (patch) | |
tree | d10400e99208595638f13e7fe3b279274a173e56 /apps/plugins/rockboy/Makefile | |
parent | d23afcd4f4ad72b1c2c087055a9ba4457f2646cd (diff) | |
download | rockbox-b8a23f9e4980e6a041d750c325ab2845aea8488a.tar.gz rockbox-b8a23f9e4980e6a041d750c325ab2845aea8488a.zip |
Fixed makefiles for autoconf.g include.
Fixed build output look in several Makefiles
Fixed code to include autoconf.h
Fixed code to use ROCKBOX_*_ENDIAN instead of previous attempts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6421 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/Makefile')
-rw-r--r-- | apps/plugins/rockboy/Makefile | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/plugins/rockboy/Makefile b/apps/plugins/rockboy/Makefile index 020d67bec8..dab4aa871e 100644 --- a/apps/plugins/rockboy/Makefile +++ b/apps/plugins/rockboy/Makefile | |||
@@ -7,8 +7,8 @@ | |||
7 | # $Id$ | 7 | # $Id$ |
8 | # | 8 | # |
9 | 9 | ||
10 | INCLUDES = -I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \ | 10 | INCLUDES = -I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \ |
11 | -I$(FIRMDIR)/common -I$(FIRMDIR)/drivers | 11 | -I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR) |
12 | CFLAGS = $(GCCOPTS) -O3 $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ | 12 | CFLAGS = $(GCCOPTS) -O3 $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ |
13 | -DMEM=${MEMORYSIZE} -DPLUGIN | 13 | -DMEM=${MEMORYSIZE} -DPLUGIN |
14 | 14 | ||
@@ -46,13 +46,13 @@ endif | |||
46 | all: $(OUTPUT) | 46 | all: $(OUTPUT) |
47 | 47 | ||
48 | ifndef SIMVER | 48 | ifndef SIMVER |
49 | $(OBJDIR)/rockboy.elf: $(OBJS) $(LINKFILE) $(OUTDIR)/libplugin.a | 49 | $(OBJDIR)/rockboy.elf: $(OBJS) $(LINKFILE) |
50 | @echo "LD $@" | 50 | @echo "LD "`basename $@` |
51 | @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(OUTDIR) -lplugin -lgcc \ | 51 | @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ |
52 | -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockboy.map | 52 | -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockboy.map |
53 | 53 | ||
54 | $(OUTPUT): $(OBJDIR)/rockboy.elf | 54 | $(OUTPUT): $(OBJDIR)/rockboy.elf |
55 | @echo "OBJCOPY $<" | 55 | @echo "OBJCOPY "`basename $@` |
56 | @$(OC) -O binary $< $@ | 56 | @$(OC) -O binary $< $@ |
57 | else | 57 | else |
58 | 58 | ||
@@ -60,9 +60,9 @@ ifeq ($(SIMVER), x11) | |||
60 | ################################################### | 60 | ################################################### |
61 | # This is the X11 simulator version | 61 | # This is the X11 simulator version |
62 | 62 | ||
63 | $(OUTPUT): $(OBJS) $(OUTDIR)/libplugin.a | 63 | $(OUTPUT): $(OBJS) |
64 | @echo "LD $@" | 64 | @echo "LD $@" |
65 | @$(CC) $(CFLAGS) -shared $(OBJS) -L$(OUTDIR) -lplugin -o $@ | 65 | @$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin -o $@ |
66 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 66 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
67 | # 'x' must be kept or you'll have "Win32 error 5" | 67 | # 'x' must be kept or you'll have "Win32 error 5" |
68 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 68 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |
@@ -77,11 +77,11 @@ else # end of x11-simulator | |||
77 | DLLTOOLFLAGS = --export-all | 77 | DLLTOOLFLAGS = --export-all |
78 | DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin | 78 | DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin |
79 | 79 | ||
80 | $(OUTPUT): $(OBJS) $(OUTDIR)/libplugin.a | 80 | $(OUTPUT): $(OBJS) |
81 | @echo "DLL $@" | 81 | @echo "DLL $@" |
82 | @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) | 82 | @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) |
83 | @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ | 83 | @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ |
84 | $(OUTDIR)/libplugin.a -o $@ | 84 | $(BUILDDIR)/libplugin.a -o $@ |
85 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 85 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
86 | # 'x' must be kept or you'll have "Win32 error 5" | 86 | # 'x' must be kept or you'll have "Win32 error 5" |
87 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 87 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |
@@ -96,10 +96,10 @@ endif # end of simulator section | |||
96 | 96 | ||
97 | include $(TOOLSDIR)/make.inc | 97 | include $(TOOLSDIR)/make.inc |
98 | 98 | ||
99 | # MEM should be passed on to this makefile with the chosen memory size given | 99 | # MEMORYSIZE should be passed on to this makefile with the chosen memory size |
100 | # in number of MB | 100 | # given in number of MB |
101 | $(LINKFILE): $(LDS) | 101 | $(LINKFILE): $(LDS) |
102 | @echo "build $@" | 102 | @echo "build "`basename $@` |
103 | @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) \ | 103 | @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) \ |
104 | -E -P - >$@ | 104 | -E -P - >$@ |
105 | 105 | ||