generated from loic/c-template
Initial commit
This commit is contained in:
commit
4f5319860c
6 changed files with 67 additions and 0 deletions
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
Colleen
|
||||||
|
Grace
|
||||||
|
Sully
|
||||||
|
build/
|
||||||
|
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*~
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*.bak
|
||||||
|
*.log
|
||||||
|
|
||||||
43
Makefile
Normal file
43
Makefile
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
NAME = Colleen
|
||||||
|
|
||||||
|
.DEFAULT_GOAL := all
|
||||||
|
MAKEFLAGS += --no-print-directory
|
||||||
|
include sources.mk
|
||||||
|
|
||||||
|
CC = clang
|
||||||
|
CPPFLAGS = -std=c99 -I includes
|
||||||
|
CFLAGS = -Wall -Wextra -Werror -pipe -Wpedantic -Wconversion -Wshadow -Wvla
|
||||||
|
LDFLAGS =
|
||||||
|
|
||||||
|
|
||||||
|
OBJ_DIR = .build
|
||||||
|
|
||||||
|
OBJS = $(SRCS:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
|
||||||
|
DEPS = $(OBJS:.o=.d)
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: $(NAME)
|
||||||
|
|
||||||
|
$(NAME): $(OBJS)
|
||||||
|
$(CC) $(LDFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
|
||||||
|
@mkdir -p $(dir $@)
|
||||||
|
$(CC) $(CPPFLAGS) $(CFLAGS) -MMD -MP -c $< -o $@
|
||||||
|
|
||||||
|
-include $(DEPS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
$(RM) -r $(OBJ_DIR)
|
||||||
|
|
||||||
|
.PHONY: fclean
|
||||||
|
fclean: clean
|
||||||
|
$(RM) $(NAME)
|
||||||
|
|
||||||
|
.PHONY: re
|
||||||
|
re: fclean
|
||||||
|
$(MAKE) all
|
||||||
|
|
||||||
1
README.md
Normal file
1
README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# Dr_Quine
|
||||||
0
includes/.gitkeep
Normal file
0
includes/.gitkeep
Normal file
4
sources.mk
Normal file
4
sources.mk
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
SRC_DIR = src
|
||||||
|
SRCS = $(SRC_DIR)/Colleen.c
|
||||||
|
|
||||||
6
src/Colleen.c
Normal file
6
src/Colleen.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
int
|
||||||
|
main(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue