bugfix
[picodrive.git] / platform / common / common_arm.mak
CommitLineData
efcba75f 1# asm stuff
2ifeq "$(asm_render)" "1"
3DEFINC += -D_ASM_DRAW_C
4OBJS += pico/draw_arm.o pico/draw2_arm.o
5endif
6ifeq "$(asm_memory)" "1"
7DEFINC += -D_ASM_MEMORY_C
8OBJS += pico/memory_arm.o
9endif
10ifeq "$(asm_ym2612)" "1"
11DEFINC += -D_ASM_YM2612_C
12OBJS += pico/sound/ym2612_arm.o
13endif
14ifeq "$(asm_misc)" "1"
15DEFINC += -D_ASM_MISC_C
16OBJS += pico/misc_arm.o
17OBJS += pico/cd/misc_arm.o
18endif
19ifeq "$(asm_cdpico)" "1"
20DEFINC += -D_ASM_CD_PICO_C
21OBJS += pico/cd/pico_arm.o
22endif
23ifeq "$(asm_cdmemory)" "1"
24DEFINC += -D_ASM_CD_MEMORY_C
25OBJS += pico/cd/memory_arm.o
26endif
27
28
ca482e5d 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
41clean_prof:
42 find ../.. -name '*.gcno' -delete
43 find ../.. -name '*.gcda' -delete
44
45mkdirs:
46 mkdir -p $(DIRS)
47
48# deps
efcba75f 49pico/carthw/svp/compiler.o : ../../pico/carthw/svp/ssp16.o ../../pico/carthw/svp/gen_arm.c
50pico/pico.o pico/cd/pico.o : ../../pico/pico_cmn.c ../../pico/pico_int.h
af37bca8 51pico/memory.o pico/cd/memory.o : ../../pico/pico_int.h ../../pico/memory.h
ca482e5d 52
53# build Cyclone
39edaa15 54../../cpu/Cyclone/proj/Cyclone.s:
ca482e5d 55 @echo building Cyclone...
56 @make -C ../../cpu/Cyclone/proj CONFIG_FILE=config_pico.h
57
efcba75f 58../../cpu/musashi/m68kops.c :
59 @make -C ../../cpu/musashi
60
ca482e5d 61# build helix libs
62../common/helix/$(CROSS)helix-mp3.a:
63 make -C ../common/helix clean all
64
65