18 lines
314 B
Makefile
18 lines
314 B
Makefile
CFLAGS +=
|
|
LDFLAGS := -lm
|
|
|
|
.PHONY: all
|
|
all: sfxd sfxc
|
|
|
|
miniaudio.o: src/miniaudio.c
|
|
$(CC) $(CFLAGS) -c src/miniaudio.c -o miniaudio.o
|
|
|
|
sfxd: src/sfxd.c miniaudio.o
|
|
$(CC) $(CFLAGS) src/sfxd.c miniaudio.o $(LDFLAGS) -o sfxd
|
|
sfxc: src/sfxc.c
|
|
$(CC) $(CFLAGS) src/sfxc.c $(LDFLAGS) -o sfxc
|
|
|
|
|
|
clean:
|
|
$(RM) sfxd sfxc
|