diff options
Diffstat (limited to 'www/example/Makefile')
-rw-r--r-- | www/example/Makefile | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/www/example/Makefile b/www/example/Makefile deleted file mode 100644 index 7d8f2fdefd..0000000000 --- a/www/example/Makefile +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | HPATH = /usr/local/sh-gcc/bin | ||
2 | CC = $(HPATH)/sh-elf-gcc | ||
3 | LD = $(HPATH)/sh-elf-ld | ||
4 | AR = $(HPATH)/sh-elf-ar | ||
5 | AS = $(HPATH)/sh-elf-as | ||
6 | OC = $(HPATH)/sh-elf-objcopy | ||
7 | |||
8 | INCLUDES=-I. | ||
9 | |||
10 | CFLAGS = -Os -Wall -m1 -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) | ||
11 | AFLAGS += -small -relax | ||
12 | |||
13 | OBJS= start.o main.o | ||
14 | |||
15 | %.o: %.s | ||
16 | $(CC) -o $@ $(CFLAGS) $(INCLUDES) $(DEFS) -c $< | ||
17 | |||
18 | |||
19 | all : archos.mod # archos.asm | ||
20 | |||
21 | main.o: main.c | ||
22 | |||
23 | archos.elf : $(OBJS) app.lds | ||
24 | $(CC) -nostdlib -o archos.elf $(OBJS) -lgcc -Tapp.lds -Wl,-Map,archos.map | ||
25 | |||
26 | archos.bin : archos.elf | ||
27 | $(OC) -O binary archos.elf archos.bin | ||
28 | |||
29 | archos.asm: archos.bin | ||
30 | sh2d -sh1 archos.bin > archos.asm | ||
31 | |||
32 | archos.mod : archos.bin | ||
33 | scramble archos.bin archos.mod | ||
34 | |||
35 | dist: | ||
36 | tar czvf dist.tar.gz Makefile main.c start.s app.lds | ||
37 | |||
38 | clean: | ||
39 | -rm -f *.x *.i *.o *.elf *.bin *.map *.mod *.bak *~ | ||
40 | |||