practice_reciprocalPalindromes/c_impl/Makefile

20 lines
347 B
Makefile
Raw Permalink Normal View History

2022-01-08 10:52:45 +00:00
ifdef DEBUG
EXTRA_CFLAGS = -g -O0
else
EXTRA_CFLAGS = -DNDEBUG -O3
endif
2022-01-08 10:12:33 +00:00
CC ?= gcc
2022-01-08 10:52:45 +00:00
CFLAGS ?= -Wall -Wextra -Wpedantic ${EXTRA_CFLAGS}
2022-01-08 10:12:33 +00:00
all: ReciprocalOfPalindromes
2022-01-08 10:52:45 +00:00
ReciprocalOfPalindromes: src/main.o src/palindrome_generator.o
2022-01-08 10:12:33 +00:00
$(CC) $(CFLAGS) -o ReciprocalOfPalindromes $^
.PHONY: clean
clean:
rm -f src/*.o
rm -f ReciprocalOfPalindromes