forked from hkc/sfxd
1
0
Fork 0
sfxd/Makefile

18 lines
362 B
Makefile

CFLAGS += -Wall -Wextra -Werror
LDFLAGS := -lm -ldl -lpthread
.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 miniaudio.o