Initial commit

This commit is contained in:
loic 2026-05-26 11:02:50 +00:00 committed by lohhiiccc
commit 4f5319860c
6 changed files with 67 additions and 0 deletions

13
.gitignore vendored Normal file
View file

@ -0,0 +1,13 @@
Colleen
Grace
Sully
build/
*.o
*.d
*~
*.swp
*.swo
*.bak
*.log

43
Makefile Normal file
View 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
View file

@ -0,0 +1 @@
# Dr_Quine

0
includes/.gitkeep Normal file
View file

4
sources.mk Normal file
View file

@ -0,0 +1,4 @@
SRC_DIR = src
SRCS = $(SRC_DIR)/Colleen.c

6
src/Colleen.c Normal file
View file

@ -0,0 +1,6 @@
int
main(void)
{
return 0;
}