makefile organise
This commit is contained in:
Binary file not shown.
+6
-6
@@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user