FS#8961 - Anti-Aliased Fonts.
[kugel-rb.git] / firmware / decompressor / Makefile
blob30bb04e4807349a8cbd224d195ee6b8ef4b7a0e3
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 ifndef V
11 SILENT=@
12 endif
13 PRINTS=$(SILENT)$(call info,$(1))
15 LDS := link.lds
16 LINKFILE = $(OBJDIR)/linkage.lds
17 OBJS := $(OBJDIR)/decompressor.o $(OBJDIR)/uclimage.o \
18 $(OBJDIR)/sh_nrv2e_d8.o $(OBJDIR)/startup.o
19 CFLAGS = $(GCCOPTS)
21 all: $(OBJDIR)/compressed.bin
23 $(OBJDIR)/compressed.bin : $(OBJDIR)/compressed.elf
24 $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
26 $(OBJDIR)/compressed.elf : $(OBJS) $(LINKFILE)
27 $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/compressed.map
29 $(LINKFILE): $(LDS)
30 $(SILENT)mkdir -p $(dir $@)
31 $(call PRINTS,Build LDS file)cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
33 $(OBJDIR)/decompressor.o : decompressor.c $(OBJDIR)/uclimage.c
34 $(SILENT)mkdir -p $(dir $@)
35 $(call PRINTS,CC $<)$(CC) $(CFLAGS) -I$(OBJDIR) -c $< -o $@
37 $(OBJDIR)/startup.o : startup.S
38 $(SILENT)mkdir -p $(dir $@)
39 $(call PRINTS,AS $<)$(CC) $(CFLAGS) -c $< -o $@
41 $(OBJDIR)/sh_nrv2e_d8.o : sh_nrv2e_d8.S
42 $(SILENT)mkdir -p $(dir $@)
43 $(call PRINTS,AS $<)$(CC) $(CFLAGS) -c $< -o $@
45 $(OBJDIR)/uclimage.o : $(OBJDIR)/uclimage.c
46 $(SILENT)mkdir -p $(dir $@)
47 $(call PRINTS,CC $(<F))$(CC) $(CFLAGS) -c $< -o $@
49 $(OBJDIR)/uclimage.c : $(FLASHFILE) $(TOOLSDIR)/ucl2src.pl
50 $(SILENT)mkdir -p $(dir $@)
51 $(call PRINTS,UCL2SRC $(<F))perl -s $(TOOLSDIR)/ucl2src.pl -p=$(OBJDIR)/uclimage $<