-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (34 loc) · 840 Bytes
/
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
39
40
41
42
43
44
45
46
47
48
##
## PERSONEL PROJECT, 2020
## Uzume
## File description:
## Makefile
##
# ---------------------------------------- #
# Variables #
# ---------------------------------------- #
NAME = uzume.so
CXX = ghc
CXXFLAGS = -Wall -Werror
SRC = src/parsing/Args.hs \
src/parsing/Char.hs \
src/parsing/Int.hs \
src/check/Int.hs \
src/operation/Int.hs \
src/operation/Char.hs \
src/operation/Maths.hs
OBJF = $(SRC:.hs=.o)
HIF = $(SRC:.hs=.hi)
# ---------------------------------------- #
# RULES #
# ---------------------------------------- #
all: $(NAME)
$(NAME): $(SRCOBJ)
$(CXX) --make -dynamic -shared -fPIC $(SRC) -o $(NAME)
clean:
$(RM) $(OBJF)
$(RM) $(HIF)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re debug