From b9d1e9c3ebbca4ce417281bf16a4cbeb7e38671e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Dan=C3=B8?= Date: Thu, 12 May 2022 09:52:51 +0200 Subject: [PATCH] feat; init makefile iteration --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..df89774 --- /dev/null +++ b/Makefile @@ -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)