-
Notifications
You must be signed in to change notification settings - Fork 1
/
libprintf.mk
35 lines (29 loc) · 1.43 KB
/
libprintf.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# **************************************************************************** #
# #
# ::: :::::::: #
# libprintf.mk :+: :+: :+: #
# +:+ +:+ +:+ #
# By: pbondoer <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/02/02 18:00:07 by pbondoer #+# #+# #
# Updated: 2017/02/08 01:47:03 by pbondoer ### ########.fr #
# #
# **************************************************************************** #
# Base variables for ft_printf library
# Use with 'include /path/to/libprintf.mk'
# Make sure to define L_PRINTF with the path to ft_printf first
# Where our library is located
L_PRINTF ?= .
# What our library will be called
PRINTF_NAME := libftprintf.a
# Variables to link and compile with ft_printf
PRINTF_LNK := -L $(L_PRINTF) -l ftprintf
PRINTF_INC := -I $(L_PRINTF)/includes
PRINTF_LIB := $(L_PRINTF)/$(PRINTF_NAME)
# Variables to link and compile all libraries
ifndef LIB_LNK
LIB_LNK :=
LIB_INC :=
endif
LIB_LNK += $(PRINTF_LNK)
LIB_INC += $(PRINTF_INC)