-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.42 KB
/
Makefile
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
36
37
38
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: sverschu </var/mail/sverschu> +#+ #
# +#+ #
# Created: 2019/10/30 16:10:10 by sverschu #+# #+# #
# Updated: 2020/11/28 16:56:29 by sverschu ######## odam.nl #
# #
# **************************************************************************** #
# C sourcefiles
SRC = criterion_libasm.c $(LIBASM_FOLDER)/libasm.a
# compiler and linker
CC = clang
CC_FLAGS = -Werror -Wextra -Wall -lcriterion
# commands
all: libasm $(NAME)
$(NAME): $(SRC)
@$(CC) $(CC_FLAGS) $(EXT_FLAGS) -I$(LIBASM_INC) -I$(LIBASM_FOLDER)/inc -I$(LIBASM_FOLDER)/Inc -I$(LIBASM_FOLDER)/Includes -I$(LIBASM_FOLDER)/includes $(SRC) -o $(NAME)
clean:
@$(RM) $(OBJ)
fclean: clean
@$(RM) $(NAME)
libasm:
ifndef NAME
$(error NAME is not set mattie --->> run ./rolmops.sh <<---)
endif
@$(MAKE) -C $(LIBASM_FOLDER) re
re: fclean all