diff options
Diffstat (limited to 'firmware/decompressor/Makefile')
-rw-r--r-- | firmware/decompressor/Makefile | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/firmware/decompressor/Makefile b/firmware/decompressor/Makefile deleted file mode 100644 index 30bb04e480..0000000000 --- a/firmware/decompressor/Makefile +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | ifndef V | ||
11 | SILENT=@ | ||
12 | endif | ||
13 | PRINTS=$(SILENT)$(call info,$(1)) | ||
14 | |||
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) | ||
20 | |||
21 | all: $(OBJDIR)/compressed.bin | ||
22 | |||
23 | $(OBJDIR)/compressed.bin : $(OBJDIR)/compressed.elf | ||
24 | $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ | ||
25 | |||
26 | $(OBJDIR)/compressed.elf : $(OBJS) $(LINKFILE) | ||
27 | $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/compressed.map | ||
28 | |||
29 | $(LINKFILE): $(LDS) | ||
30 | $(SILENT)mkdir -p $(dir $@) | ||
31 | $(call PRINTS,Build LDS file)cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@ | ||
32 | |||
33 | $(OBJDIR)/decompressor.o : decompressor.c $(OBJDIR)/uclimage.c | ||
34 | $(SILENT)mkdir -p $(dir $@) | ||
35 | $(call PRINTS,CC $<)$(CC) $(CFLAGS) -I$(OBJDIR) -c $< -o $@ | ||
36 | |||
37 | $(OBJDIR)/startup.o : startup.S | ||
38 | $(SILENT)mkdir -p $(dir $@) | ||
39 | $(call PRINTS,AS $<)$(CC) $(CFLAGS) -c $< -o $@ | ||
40 | |||
41 | $(OBJDIR)/sh_nrv2e_d8.o : sh_nrv2e_d8.S | ||
42 | $(SILENT)mkdir -p $(dir $@) | ||
43 | $(call PRINTS,AS $<)$(CC) $(CFLAGS) -c $< -o $@ | ||
44 | |||
45 | $(OBJDIR)/uclimage.o : $(OBJDIR)/uclimage.c | ||
46 | $(SILENT)mkdir -p $(dir $@) | ||
47 | $(call PRINTS,CC $(<F))$(CC) $(CFLAGS) -c $< -o $@ | ||
48 | |||
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 $< | ||
52 | |||