Added C template
This commit is contained in:
parent
3950d3fe20
commit
a634e932f6
5 changed files with 43 additions and 2 deletions
16
c/Makefile
Normal file
16
c/Makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
all: main
|
||||
|
||||
CC = clang
|
||||
override CFLAGS += -g -Wno-everything -pthread -lm
|
||||
|
||||
SRCS = $(shell find . -name '.ccls-cache' -type d -prune -o -type f -name '*.c' -print)
|
||||
HEADERS = $(shell find . -name '.ccls-cache' -type d -prune -o -type f -name '*.h' -print)
|
||||
|
||||
main: $(SRCS) $(HEADERS)
|
||||
$(CC) $(CFLAGS) $(SRCS) -o "$@"
|
||||
|
||||
main-debug: $(SRCS) $(HEADERS)
|
||||
$(CC) $(CFLAGS) -O0 $(SRCS) -o "$@"
|
||||
|
||||
clean:
|
||||
rm -f main main-debug
|
||||
Loading…
Add table
Add a link
Reference in a new issue