Skip to content

Commit

Permalink
feat; init makefile iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
varuld committed May 12, 2022
1 parent 75e7f30 commit b9d1e9c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit b9d1e9c

Please sign in to comment.