makefile organise

This commit is contained in:
Hugo LAMY
2019-11-19 21:13:55 +01:00
parent 966241a6df
commit 32356ba7a0
85 changed files with 2052 additions and 116 deletions
Binary file not shown.
+6 -6
View File
@@ -1,22 +1,22 @@
#-------------#
# VARIABLES #
#-------------#
NAME = test
NAME = libtest.a
CC = gcc
VPATH = srcs
# HEADERS #
IDIR = includes
_DEPS = test.h
DEPS = $(_DEPS:%.h=$(IDIR)/%.h)
# LIBRAIRIES #
LDIR = ./
LDIR = .
_LIBS = libtest.a
LIBS = $(_LIBS:lib%.a=%)
# FUNCTIONS et OBJETS #
SRCS = main.c to_uppercase.c putchar.c transform.c
ODIR = ./builds
OBJS = $(SRCS:%.c=$(ODIR)/%.o)
# OPTIONS de GCC #
CFLAGS = -I$(IDIR)
LFLAGS = -L$(LDIR) -l$(LIBS)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Regular → Executable
BIN
View File
Binary file not shown.