practice_listRotations/Makefile

17 lines
288 B
Makefile
Raw Permalink Normal View History

2020-06-06 10:46:49 +00:00
CC = gcc
COMMON_FLAGS = -Wall -Wextra -Wpedantic
ifdef DEBUG
CFLAGS = $(COMMON_FLAGS) -g -O0
else
CFLAGS = $(COMMON_FLAGS) -O3 -DNDEBUG
endif
all: ListRotations
ListRotations: src/main.o
$(CC) $(CFLAGS) $(LINKER_FLAGS) -o ListRotations $^
clean:
rm -f ListRotations
rm -f src/*.o