summaryrefslogtreecommitdiff
path: root/firmware/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/Makefile')
-rw-r--r--firmware/Makefile57
1 files changed, 0 insertions, 57 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
deleted file mode 100644
index 0b80cf22e3..0000000000
--- a/firmware/Makefile
+++ /dev/null
@@ -1,57 +0,0 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10INCLUDES=$(TARGET_INC) -Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers -I$(BUILDDIR)
11
12CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(EXTRA_DEFINES) \
13 -DMEM=${MEMORYSIZE}
14
15# Limits for the built-in sysfont: ASCII for bootloaders, ISO8859-1 for normal builds
16ifneq (,$(findstring -DBOOTLOADER,$(EXTRA_DEFINES)))
17 MAXCHAR = 127
18else
19 MAXCHAR = 255
20endif
21
22# This sets up 'SRC' based on the files mentioned in SOURCES
23include $(TOOLSDIR)/makesrc.inc
24
25SOURCES = $(SRC)
26OBJS2 := $(patsubst %.c, $(OBJDIR)/%.o, $(SRC)) $(OBJDIR)/sysfont.o
27OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
28DIRS:=. drivers common
29OUTPUT = $(BUILDDIR)/librockbox.a
30DEPFILE = $(OBJDIR)/dep-firmware
31
32all: $(OUTPUT) $(EXTRA_TARGETS)
33
34dep: $(DEPFILE)
35
36$(OUTPUT): $(BUILDDIR)/sysfont.h $(OBJS) $(DEPFILE)
37 $(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $(OBJS) >/dev/null 2>&1
38 $(SILENT)$(RANLIB) $@
39
40include $(TOOLSDIR)/make.inc
41
42clean:
43 $(call PRINTS,cleaning firmware)rm -f $(OBJS) $(OUTPUT) $(OBJDIR)/sysfont.c $(DEPFILE)
44 $(SILENT)rm -rf $(OBJDIR)/drivers $(OBJDIR)/common
45
46# Special targets
47$(OBJDIR)/thread.o: thread.c export/thread.h
48 $(call PRINTS,CC thread.c)$(CC) -c -O -fomit-frame-pointer $(CFLAGS) $< -o $@
49
50$(BUILDDIR)/sysfont.h: ../fonts/08-Schumacher-Clean.bdf
51 $(call PRINTS,Create sysfont.h)$(TOOLSDIR)/convbdf -l $(MAXCHAR) -h -o $@ $<
52
53$(OBJDIR)/sysfont.o: ../fonts/08-Schumacher-Clean.bdf
54 $(call PRINTS,CONVBDF)$(TOOLSDIR)/convbdf -l $(MAXCHAR) -c -o $(OBJDIR)/sysfont.c $<
55 $(call PRINTS,CC sysfont.c)$(CC) $(CFLAGS) -c $(OBJDIR)/sysfont.c -o $@
56
57-include $(DEPFILE)