diff options
Diffstat (limited to 'firmware/Makefile')
-rw-r--r-- | firmware/Makefile | 57 |
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 | |||
10 | INCLUDES=$(TARGET_INC) -Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers -I$(BUILDDIR) | ||
11 | |||
12 | CFLAGS = $(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 | ||
16 | ifneq (,$(findstring -DBOOTLOADER,$(EXTRA_DEFINES))) | ||
17 | MAXCHAR = 127 | ||
18 | else | ||
19 | MAXCHAR = 255 | ||
20 | endif | ||
21 | |||
22 | # This sets up 'SRC' based on the files mentioned in SOURCES | ||
23 | include $(TOOLSDIR)/makesrc.inc | ||
24 | |||
25 | SOURCES = $(SRC) | ||
26 | OBJS2 := $(patsubst %.c, $(OBJDIR)/%.o, $(SRC)) $(OBJDIR)/sysfont.o | ||
27 | OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) | ||
28 | DIRS:=. drivers common | ||
29 | OUTPUT = $(BUILDDIR)/librockbox.a | ||
30 | DEPFILE = $(OBJDIR)/dep-firmware | ||
31 | |||
32 | all: $(OUTPUT) $(EXTRA_TARGETS) | ||
33 | |||
34 | dep: $(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 | |||
40 | include $(TOOLSDIR)/make.inc | ||
41 | |||
42 | clean: | ||
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) | ||