practice_listSlices/c_impl/Makefile

19 lines
283 B
Makefile
Raw Permalink Normal View History

2020-12-06 09:34:46 +00:00
COMMON_FLAGS = -std=gnu11 -Wall -Wextra -Wpedantic
2020-12-06 08:55:30 +00:00
ifdef DEBUG
CFLAGS = $(COMMON_FLAGS) -O0 -g
else
CFLAGS = $(COMMON_FLAGS) -O3 -DNDEBUG
endif
all: listSlices_c
listSlices_c: src/main.o
$(CC) $(CFLAGS) -o listSlices_c $^
.PHONY:
clean:
rm -f src/main.o
rm -f listSlices_c