split files

This commit is contained in:
hugogogo
2026-04-28 22:35:46 +02:00
parent 48221894c0
commit fb81f200d9
7 changed files with 127 additions and 104 deletions

View File

@@ -33,10 +33,14 @@ RESET = "\e[0m"
# FILES :
NAME = computorv1
D_LIB = ./libft
D_SRCS = ./src
D_HEADERS = ./headers
SRCS = computorv1.c
HEADERS = computorv1.h
HEADERS = computorv1.h \
errors.h \
lexer.h
D_SRCS = ./src
SRCS = computorv1.c \
errors.c \
lexer.c
# COMPILATION CONFIG :
CC = gcc
@@ -49,7 +53,7 @@ D_OBJS = builds
OBJS = $(SRCS:%.$(EXT)=$(D_OBJS)/%.o)
VPATH = $(D_SRCS)
F_INCLUDES = $(HEADERS:%=$(D_HEADERS)/%)
INCLUDES = -I$(D_HEADERS)
INCLUDES = -I$(D_HEADERS) -I$(D_LIB)/includes
ifeq "$(D_OBJS)" "."
RM_OBJS = rm -f $(OBJS)
else