-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 782 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (19 loc) · 782 Bytes
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
CC := gcc
CFLAGS := -O2 -Wall -Wextra -std=c99 -Isrc
LDFLAGS := -mwindows
LIBS := -lwinmm -lole32 -lgdi32 -luser32 -lcomctl32
SRC := src/main.c src/audio.c src/synth.c src/gui.c src/presets.c
OUT := ToneGen.exe
TESTS := test_synth.exe test_presets.exe
$(OUT): $(SRC)
$(CC) $(CFLAGS) $(SRC) -o $(OUT) $(LDFLAGS) $(LIBS)
test_synth.exe: tests/test_synth.c src/synth.c src/synth.h
$(CC) -O0 -g -Wall -Wextra -std=c99 -Isrc tests/test_synth.c src/synth.c -o test_synth.exe -lm
test_presets.exe: tests/test_presets.c src/presets.c src/presets.h
$(CC) -O0 -g -Wall -Wextra -std=c99 -Isrc tests/test_presets.c src/presets.c -o test_presets.exe
test: $(TESTS)
./test_synth.exe
./test_presets.exe
clean:
rm -f $(OUT) test_synth.exe test_presets.exe
.PHONY: test clean