qoi/Makefile

24 lines
532 B
Makefile
Raw Normal View History

2022-05-12 08:52:51 +01:00
CC := gcc
CFLAGS_BENCH := -std=gnu99 -O3
LFLAGS_BENCH := -lpng
CFLAGS_CONV := -std=c99 -O3
TARGET_BENCH := qoibench
TARGET_CONV := qoiconv
2022-05-12 09:07:44 +01:00
all: $(TARGET_BENCH) $(TARGET_CONV)
bench: $(TARGET_BENCH)
2022-05-12 08:52:51 +01:00
$(TARGET_BENCH):$(TARGET_BENCH).c $(LFLAGS_BENCH)
$(CC) $(CFLAGS_BENCH) $(TARGET_BENCH).c -o $(TARGET_BENCH) $(LFLAGS_BENCH)
2022-05-12 09:07:44 +01:00
conv: $(TARGET_CONV)
2022-05-12 08:52:51 +01:00
$(TARGET_CONV):$(TARGET_CONV).c
$(CC) $(CFLAGS_CONV) $(TARGET_CONV).c -o $(TARGET_CONV)
.PHONY: clean
clean:
2022-05-12 09:07:44 +01:00
$(RM) $(TARGET_BENCH) $(TARGET_CONV) $(OBJS) $(DEPS)
2022-05-12 08:52:51 +01:00
-include $(DEPS)