forked from len0rd/rockbox
Whoops. it seems my makefile format was out of date compared to cvs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6433 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b0e010fc51
commit
fda0d43172
1 changed files with 19 additions and 19 deletions
|
|
@ -7,8 +7,8 @@
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
INCLUDES = -I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
|
INCLUDES = -I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
|
||||||
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(OUTDIR)
|
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(OUTDIR) -I$(BUILDDIR)
|
||||||
CFLAGS = $(GCCOPTS) -O3 $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
|
CFLAGS = $(GCCOPTS) -O3 $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
|
||||||
-DMEM=${MEMORYSIZE} -DPLUGIN
|
-DMEM=${MEMORYSIZE} -DPLUGIN
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@ endif
|
||||||
|
|
||||||
LINKFILE := $(OBJDIR)/link.lds
|
LINKFILE := $(OBJDIR)/link.lds
|
||||||
DEPFILE = $(OBJDIR)/dep-databox
|
DEPFILE = $(OBJDIR)/dep-databox
|
||||||
SRC = databox.c editparser.c edittoken.c
|
SRC = databox.c editparser.c edittoken.c
|
||||||
|
|
||||||
SOURCES = $(SRC)
|
SOURCES = $(SRC)
|
||||||
OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
|
OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
|
||||||
|
|
@ -30,13 +30,13 @@ OUTPUT = $(OUTDIR)/databox.rock
|
||||||
all: $(OUTPUT)
|
all: $(OUTPUT)
|
||||||
|
|
||||||
ifndef SIMVER
|
ifndef SIMVER
|
||||||
$(OBJDIR)/databox.elf: $(OBJS) $(LINKFILE) $(OUTDIR)/libplugin.a
|
$(OBJDIR)/databox.elf: $(OBJS) $(LINKFILE)
|
||||||
@echo "LD $@"
|
@echo "LD "`basename $@`
|
||||||
@$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(OUTDIR) -lplugin -lgcc \
|
@$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
|
||||||
-T$(LINKFILE) -Wl,-Map,$(OBJDIR)/searchengine.map
|
-T$(LINKFILE) -Wl,-Map,$(OBJDIR)/databox.map
|
||||||
|
|
||||||
$(OUTPUT): $(OBJDIR)/databox.elf
|
$(OUTPUT): $(OBJDIR)/databox.elf
|
||||||
@echo "OBJCOPY $<"
|
@echo "OBJCOPY "`basename $@`
|
||||||
@$(OC) -O binary $< $@
|
@$(OC) -O binary $< $@
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
@ -44,9 +44,9 @@ ifeq ($(SIMVER), x11)
|
||||||
###################################################
|
###################################################
|
||||||
# This is the X11 simulator version
|
# This is the X11 simulator version
|
||||||
|
|
||||||
$(OUTPUT): $(OBJS) $(OUTDIR)/libplugin.a
|
$(OUTPUT): $(OBJS)
|
||||||
@echo "LD $@"
|
@echo "LD $<"
|
||||||
@$(CC) $(CFLAGS) -shared $(OBJS) -L$(OUTDIR) -lplugin -o $@
|
@$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin -o $@
|
||||||
ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
|
ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
|
||||||
# 'x' must be kept or you'll have "Win32 error 5"
|
# 'x' must be kept or you'll have "Win32 error 5"
|
||||||
# $ fgrep 5 /usr/include/w32api/winerror.h | head -1
|
# $ fgrep 5 /usr/include/w32api/winerror.h | head -1
|
||||||
|
|
@ -61,11 +61,11 @@ else # end of x11-simulator
|
||||||
DLLTOOLFLAGS = --export-all
|
DLLTOOLFLAGS = --export-all
|
||||||
DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
|
DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
|
||||||
|
|
||||||
$(OUTPUT): $(OBJS) $(OUTDIR)/libplugin.a
|
$(OUTPUT): $(OBJS)
|
||||||
@echo "DLL $@"
|
@echo "DLL "`basename $@`
|
||||||
@$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
|
@$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
|
||||||
@$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
|
@$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
|
||||||
$(OUTDIR)/libplugin.a -o $@
|
$(BUILDDIR)/libplugin.a -o $@
|
||||||
ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
|
ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
|
||||||
# 'x' must be kept or you'll have "Win32 error 5"
|
# 'x' must be kept or you'll have "Win32 error 5"
|
||||||
# $ fgrep 5 /usr/include/w32api/winerror.h | head -1
|
# $ fgrep 5 /usr/include/w32api/winerror.h | head -1
|
||||||
|
|
@ -80,12 +80,12 @@ endif # end of simulator section
|
||||||
|
|
||||||
include $(TOOLSDIR)/make.inc
|
include $(TOOLSDIR)/make.inc
|
||||||
|
|
||||||
# MEM should be passed on to this makefile with the chosen memory size given
|
# MEMORYSIZE should be passed on to this makefile with the chosen memory size
|
||||||
# in number of MB
|
# given in number of MB
|
||||||
$(LINKFILE): $(LDS)
|
$(LINKFILE): $(LDS)
|
||||||
@echo "build $@"
|
@echo "build "`basename $@`
|
||||||
@cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) \
|
@cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
|
||||||
-E -P - >$@
|
$(DEFINES) -E -P - >$@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "cleaning databox"
|
@echo "cleaning databox"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue