Skeleton C project
This commit is contained in:
parent
916e7e07dd
commit
23d0c7232f
2 changed files with 23 additions and 0 deletions
20
c_impl/Makefile
Normal file
20
c_impl/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
COMMON_FLAGS = -Wall -Wextra -Wpedantic
|
||||||
|
ifdef DEBUG
|
||||||
|
CFLAGS = ${COMMON_FLAGS} -O0 -g
|
||||||
|
else
|
||||||
|
CFLAGS = ${COMMON_FLAGS} -O3 -DNDEBUG
|
||||||
|
endif
|
||||||
|
|
||||||
|
SOURCES = \
|
||||||
|
src/main.o
|
||||||
|
|
||||||
|
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
|
3
c_impl/src/main.c
Normal file
3
c_impl/src/main.c
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
int main(int argc, char **argv) {
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue