feat; init makefile iteration

This commit is contained in:
Christian Danø 2022-05-12 09:52:51 +02:00
parent 75e7f308a4
commit b9d1e9c3eb

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
CC := gcc
CFLAGS_BENCH := -std=gnu99 -O3
LFLAGS_BENCH := -lpng
CFLAGS_CONV := -std=c99 -O3
TARGET_BENCH := qoibench
TARGET_CONV := qoiconv
all := $(TARGET)
$(TARGET_BENCH):$(TARGET_BENCH).c $(LFLAGS_BENCH)
$(CC) $(CFLAGS_BENCH) $(TARGET_BENCH).c -o $(TARGET_BENCH) $(LFLAGS_BENCH)
$()
$(TARGET_CONV):$(TARGET_CONV).c
$(CC) $(CFLAGS_CONV) $(TARGET_CONV).c -o $(TARGET_CONV)
.PHONY: clean
clean:
$(RM) $(TARGET) $(OBJS) $(DEPS)
-include $(DEPS)