-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (28 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
all:
utils/embedify res/* include/modfiles.h
gcc -std=c99 -c src/Player_Channel.c -Iinclude -o obj/Player_Channel.o -g
gcc -std=c99 -c src/Player.c -Iinclude -o obj/Player.o -g
gcc -std=c99 -c src/MOD.c -Iinclude -o obj/MOD.o -g
gcc -std=c99 -c src/MOD_Sample.c -Iinclude -o obj/MOD_Sample.o -g
gcc -std=c99 -c src/MOD_Channel.c -Iinclude -o obj/MOD_Channel.o -g
gcc -std=c99 -c src/utils.c -Iinclude -o obj/utils.o -g
ar rcs lib/libmodam.a obj/*.o
avr32:
utils/embedify res/* include/modfiles.h
avr32-gcc -std=c99 -c src/Player_Channel.c -Iinclude -o obj/Player_Channel.o -O3 -g
avr32-gcc -std=c99 -c src/Player.c -Iinclude -o obj/Player.o -O3 -g
avr32-gcc -std=c99 -c src/MOD.c -Iinclude -o obj/MOD.o -O3 -g
avr32-gcc -std=c99 -c src/MOD_Sample.c -Iinclude -o obj/MOD_Sample.o -O3 -g
avr32-gcc -std=c99 -c src/MOD_Channel.c -Iinclude -o obj/MOD_Channel.o -O3 -g
avr32-gcc -std=c99 -c src/utils.c -Iinclude -o obj/utils.o -O3 -g
avr32-ar rcs lib/libmodam.a obj/*.o
test: all
gcc -std=c99 tests/test.c -o bin/test -Iinclude -Llib -lmodam -g -lm
debug: all test
gdb -tui bin/test
play: all test
bin/test | aplay -r48000 -f S16_LE
clean:
rm bin/*
rm lib/*
rm obj/*