bugfix
[picodrive.git] / platform / common / common_arm.mak
1 # asm stuff
2 ifeq "$(asm_render)" "1"
3 DEFINC += -D_ASM_DRAW_C
4 OBJS += pico/draw_arm.o pico/draw2_arm.o
5 endif
6 ifeq "$(asm_memory)" "1"
7 DEFINC += -D_ASM_MEMORY_C
8 OBJS += pico/memory_arm.o
9 endif
10 ifeq "$(asm_ym2612)" "1"
11 DEFINC += -D_ASM_YM2612_C
12 OBJS += pico/sound/ym2612_arm.o
13 endif
14 ifeq "$(asm_misc)" "1"
15 DEFINC += -D_ASM_MISC_C
16 OBJS += pico/misc_arm.o
17 OBJS += pico/cd/misc_arm.o
18 endif
19 ifeq "$(asm_cdpico)" "1"
20 DEFINC += -D_ASM_CD_PICO_C
21 OBJS += pico/cd/pico_arm.o
22 endif
23 ifeq "$(asm_cdmemory)" "1"
24 DEFINC += -D_ASM_CD_MEMORY_C
25 OBJS += pico/cd/memory_arm.o
26 endif
27
28
29 .c.o:
30         @echo ">>>" $<
31         $(CC) $(CFLAGS) $(DEFINC) -c $< -o $@
32
33 .S.o:
34         @echo ">>>" $<
35         $(CC) $(SFLAGS) $(DEFINC) -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 # deps
49 pico/carthw/svp/compiler.o : ../../pico/carthw/svp/ssp16.o ../../pico/carthw/svp/gen_arm.c
50 pico/pico.o pico/cd/pico.o : ../../pico/pico_cmn.c ../../pico/pico_int.h
51 pico/memory.o pico/cd/memory.o : ../../pico/pico_int.h ../../pico/memory.h
52
53 # build Cyclone
54 ../../cpu/Cyclone/proj/Cyclone.s:
55         @echo building Cyclone...
56         @make -C ../../cpu/Cyclone/proj CONFIG_FILE=config_pico.h
57
58 ../../cpu/musashi/m68kops.c :
59         @make -C ../../cpu/musashi
60
61 # build helix libs
62 ../common/helix/$(CROSS)helix-mp3.a:
63         make -C ../common/helix clean all
64
65