feat; working makefile
This commit is contained in:
parent
b9d1e9c3eb
commit
9374bd61ae
8
Makefile
8
Makefile
@ -6,16 +6,18 @@ CFLAGS_CONV := -std=c99 -O3
|
|||||||
TARGET_BENCH := qoibench
|
TARGET_BENCH := qoibench
|
||||||
TARGET_CONV := qoiconv
|
TARGET_CONV := qoiconv
|
||||||
|
|
||||||
all := $(TARGET)
|
all: $(TARGET_BENCH) $(TARGET_CONV)
|
||||||
|
|
||||||
|
bench: $(TARGET_BENCH)
|
||||||
|
|
||||||
$(TARGET_BENCH):$(TARGET_BENCH).c $(LFLAGS_BENCH)
|
$(TARGET_BENCH):$(TARGET_BENCH).c $(LFLAGS_BENCH)
|
||||||
$(CC) $(CFLAGS_BENCH) $(TARGET_BENCH).c -o $(TARGET_BENCH) $(LFLAGS_BENCH)
|
$(CC) $(CFLAGS_BENCH) $(TARGET_BENCH).c -o $(TARGET_BENCH) $(LFLAGS_BENCH)
|
||||||
|
|
||||||
$()
|
conv: $(TARGET_CONV)
|
||||||
$(TARGET_CONV):$(TARGET_CONV).c
|
$(TARGET_CONV):$(TARGET_CONV).c
|
||||||
$(CC) $(CFLAGS_CONV) $(TARGET_CONV).c -o $(TARGET_CONV)
|
$(CC) $(CFLAGS_CONV) $(TARGET_CONV).c -o $(TARGET_CONV)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(TARGET) $(OBJS) $(DEPS)
|
$(RM) $(TARGET_BENCH) $(TARGET_CONV) $(OBJS) $(DEPS)
|
||||||
-include $(DEPS)
|
-include $(DEPS)
|
||||||
|
Loading…
Reference in New Issue
Block a user