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

18 lines
362 B
Makefile
Raw Normal View History

2024-02-25 13:26:36 +03:00
CFLAGS += -Wall -Wextra -Werror
LDFLAGS := -lm -ldl -lpthread
2024-02-21 13:27:25 +03:00
2024-02-21 13:31:20 +03:00
.PHONY: all
all: sfxd sfxc
2024-02-21 13:27:25 +03:00
2024-02-22 13:24:41 +03:00
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
2024-02-21 13:31:20 +03:00
$(CC) $(CFLAGS) src/sfxc.c $(LDFLAGS) -o sfxc
2024-02-21 13:27:25 +03:00
clean:
2024-02-25 13:26:36 +03:00
$(RM) sfxd sfxc miniaudio.o