makefile organise
This commit is contained in:
BIN
test/.Makefile.swp
Normal file
BIN
test/.Makefile.swp
Normal file
Binary file not shown.
@@ -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
test/libdeux.a
Normal file
BIN
test/libdeux.a
Normal file
Binary file not shown.
BIN
test/libtest.a
Normal file
BIN
test/libtest.a
Normal file
Binary file not shown.
BIN
test/libtrois.a
Normal file
BIN
test/libtrois.a
Normal file
Binary file not shown.
Reference in New Issue
Block a user