Compare commits

...

11 Commits

Author SHA1 Message Date
95bfd5f043 add makefile and bin folder 2025-08-17 18:12:57 +02:00
Andrea
f049500fb4 chore: add editorconfig file 2024-09-23 08:43:58 +02:00
Andrea
0e470dd9e5 fix: fix main argv type 2024-09-23 08:43:42 +02:00
Andrea
19965986d9 chore: add contributing file 2024-09-22 15:25:26 +02:00
Andrea
e047f23a82 chore(completions): update completions folder 2024-09-22 15:25:09 +02:00
Andrea
3bba05b49d chore: add scripts folder 2024-09-14 09:25:10 +02:00
Andrea
43449072fe chore: add lib folder 2024-09-14 09:25:03 +02:00
Andrea
f0a4048115 chore: add tests folder 2024-09-14 09:24:55 +02:00
Andrea
e2e0b3cd7f chore: add changelog file 2024-09-14 09:24:35 +02:00
Andrea
7be07a77f1 chore: add docs folder 2024-09-13 11:26:28 +02:00
Andrea
75d8df8e36 chore: add gitignore file 2024-09-13 11:26:14 +02:00
17 changed files with 46 additions and 4 deletions

7
.editorconfig Normal file
View File

@@ -0,0 +1,7 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
bin/*
!bin/.gitkeep

1
CHANGELOG.md Normal file
View File

@@ -0,0 +1 @@
# Changelog

1
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1 @@
## Contributing

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
CC := gcc
CFLAGS := -Wall -Wextra -Iheaders
PROG_NAME := program
SRC_DIR := src
BIN_DIR := bin
INC_DIR := include
TARGET := $(BIN_DIR)/$(PROG_NAME)
SRCS := $(wildcard $(SRC_DIR)/*.c)
OBJS := $(SRCS:$(SRC_DIR)/%.c=$(BIN_DIR)/%.o)
all: $(TARGET)
$(TARGET): $(OBJS) | $(BIN_DIR)
$(CC) $(OBJS) -o $@
@rm -f $(OBJS)
$(BIN_DIR)/%.o: $(SRC_DIR)/%.c | $(BIN_DIR)
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf $(BIN_DIR)
.PHONY: all clean

View File

@@ -1,3 +1,3 @@
# C Project # C Project
A little template for C projects. A little template for C projects.

View File

@@ -1,2 +1,2 @@
#include "utils.h" #include "utils.h"

View File

View File

0
completions/zsh/.gitkeep Normal file
View File

4
docs/README.md Normal file
View File

@@ -0,0 +1,4 @@
## Documentation
Write here the documentation for your project!

View File

@@ -2,4 +2,4 @@
#ifndef UTILS_H #ifndef UTILS_H
#define UTILS_H #define UTILS_H
#endif #endif

0
lib/.gitkeep Normal file
View File

0
scripts/.gitkeep Normal file
View File

View File

@@ -1,2 +1,2 @@
int main(int argc, char *argv) { return 0; } int main(int argc, char **argv) { return 0; }

0
tests/.gitkeep Normal file
View File