practice_runLengthEncoding/c_impl/Makefile

21 lines
336 B
Makefile
Raw Permalink Normal View History

2021-08-18 11:35:26 +00:00
SOURCES = src/main.c
2021-02-19 02:07:59 +00:00
OBJECTS = $(subst .c,.o,$(SOURCES))
COMMON_FLAGS = -Wall -Wextra -Wpedantic
ifdef DEBUG
CFLAGS = $(COMMON_FLAGS) -O0 -g
else
CFLAGS = $(COMMON_FLAGS) -O3 -DNDEBUG
endif
all: RunLengthEncoding
RunLengthEncoding: $(OBJECTS)
$(CC) -o RunLengthEncoding $^
.PHONY:
clean:
rm -f RunLengthEncoding
rm -f src/*.o