practice_field_from_csv/c_impl/Makefile

24 lines
365 B
Makefile
Raw Permalink Normal View History

2022-03-23 12:03:57 +00:00
COMMON_FLAGS = -Wall -Wextra -Wpedantic
ifdef DEBUG
CFLAGS = ${COMMON_FLAGS} -O0 -g
else
CFLAGS = ${COMMON_FLAGS} -O3 -DNDEBUG
endif
SOURCES = \
src/main.o \
src/argparse.o \
src/csventry.o \
src/strdlist.o
2022-03-23 12:03:57 +00:00
all: fields_from_csv
fields_from_csv: ${SOURCES}
${CC} ${CFLAGS} -o fields_from_csv $^
.PHONY: clean
clean:
rm -f src/*.o
rm -f fields_from_csv