-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (41 loc) · 953 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
49
50
51
52
53
54
55
56
57
##
## Makefile for Pamela in /home/jack/workspace/crypto/pamela
##
## Made by Jack
## Login <[email protected]>
##
## Started on Thu Oct 31 13:31:42 2013 Jack
## Last update Sun Nov 24 19:51:40 2013 Jack
##
NAME = pamela_mount.so
GCC = gcc
RM = rm -f
CFLAGS += -Wall -Wextra -Werror
CFLAGS += -ansi
CFLAGS += $(DFLAGS) $(INCLUDES)
CFLAGS += -fPIC
DFLAGS = -D _BSD_SOURCE
LIB = -lxml2 -lz -lm -ldl -lcryptsetup
INCLUDES = -I /usr/include/libxml2
DEBUG = -g3
SRCDIR = srcs/
SRCS = $(SRCDIR)pamela.c \
$(SRCDIR)init.c \
$(SRCDIR)log.c \
$(SRCDIR)rd_config.c \
$(SRCDIR)rd_user_config.c \
$(SRCDIR)loop.c \
$(SRCDIR)crypt.c \
$(SRCDIR)mount.c \
$(SRCDIR)cleanup.c \
$(SRCDIR)misc.c
OBJS = $(SRCS:%.c=%.o)
all: $(NAME)
$(NAME): $(OBJS)
$(GCC) -shared -o $(NAME) $(OBJS) $(LIB)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re