6f8eb9ae70796e49b63db881b0667aa694583000
[picodrive.git] / common_arm.mak
1 # asm stuff
2 ifeq "$(asm_render)" "1"
3 DEFINES += _ASM_DRAW_C
4 OBJS += pico/draw_arm.o pico/draw2_arm.o
5 endif
6 ifeq "$(asm_memory)" "1"
7 DEFINES += _ASM_MEMORY_C
8 OBJS += pico/memory_arm.o
9 endif
10 ifeq "$(asm_ym2612)" "1"
11 DEFINES += _ASM_YM2612_C
12 OBJS += pico/sound/ym2612_arm.o
13 endif
14 ifeq "$(asm_misc)" "1"
15 DEFINES += _ASM_MISC_C
16 OBJS += pico/misc_arm.o
17 OBJS += pico/cd/misc_arm.o
18 endif
19 ifeq "$(asm_cdpico)" "1"
20 DEFINES += _ASM_CD_PICO_C
21 OBJS += pico/cd/pico_arm.o
22 endif
23 ifeq "$(asm_cdmemory)" "1"
24 DEFINES += _ASM_CD_MEMORY_C
25 OBJS += pico/cd/memory_arm.o
26 endif
27
28
29 .c.o:
30         @echo ">>>" $<
31         $(CC) $(CFLAGS) -c $< -o $@
32
33 .S.o:
34         @echo ">>>" $<
35         $(CC) $(CFLAGS) -c $< -o $@
36
37
38 ../../tools/textfilter: ../../tools/textfilter.c
39         make -C ../../tools/ textfilter
40
41 clean_prof:
42         find ../.. -name '*.gcno' -delete
43         find ../.. -name '*.gcda' -delete
44
45 mkdirs:
46         mkdir -p $(DIRS)
47
48 # some deps
49 pico/carthw/svp/compiler.o : ../../pico/carthw/svp/ssp16.o ../../cpu/drc/emit_arm.c
50 cpu/sh2/compiler.o : ../../cpu/drc/emit_arm.c
51 pico/pico.o pico/cd/pico.o : ../../pico/pico_cmn.c ../../pico/pico_int.h
52 pico/memory.o pico/cd/memory.o : ../../pico/pico_int.h ../../pico/memory.h
53
54 # build Cyclone
55 ../../cpu/Cyclone/proj/Cyclone.s:
56         @echo building Cyclone...
57         @make -C ../../cpu/Cyclone/proj CONFIG_FILE=config_pico.h
58
59 ../../cpu/musashi/m68kops.c :
60         @make -C ../../cpu/musashi
61
62 # build helix libs
63 ../common/helix/$(CROSS)helix-mp3.a:
64         make -C ../common/helix clean all
65
66