-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.in
53 lines (45 loc) · 1.76 KB
/
Makefile.in
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
INSTALL_DIR = $(shell test -d /lib/x86_64-linux-gnu/security && echo $(DESTDIR)/lib/x86_64-linux-gnu/security || echo $(DESTDIR)/lib/security)
CC=@CC@
CFLAGS=@CFLAGS@ @CPPFLAGS@ -I. -I /usr/kerberos/include -I /usr/local/include -I isynclib
#CFLAGS=@CFLAGS@ @CPPFLAGS@
#CPPFLAGS=@CPPFLAGS@
DEFINE=@DEFS@
LDFLAGS=@LDFLAGS@ -shared
LIBS=@LIBS@
ISYNCLIB=./isynclib
#export CFLAGS=-Wall -O2 -g -Wno-deprecated -Wshadow -Wmissing-prototypes \
# -I$(ISYNCLIB) -Dlinux -DLINUX_PAM -D_POSIX_SOURCE \
# -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional \
# -Winline -fPIC
#export LD_D=-lssl -lcrypto -lnsl -ldb -L/lib -Xlinker -shared -x -lz \
-lpam -lpam_misc
#LFLAGS = -shared -lssl -lcrypto -lnsl -ldb -L/lib -Xlinker -x -lz -lpam -lpam_misc
#### User config note: Take out -DDEBUG if you would not like
# extra debugging info printed to the screen / log files
# Also... if you would like to have SSL keys to be verified
# add in -DVERIFY_CERT -- I personally find it annoying
#DEFINE=-DDEBUG -DHAVE_CONFIG_H -DHAVE_LIBSSL
#export DEFINE=-DDEBUG -DHAVE_CONFIG_H -DHAVE_LIBSSL
PROG=pam_imap.so
UTILS=check_user
#OBJ=imaptest.o imap.o sync.o config.o maildir.o list.o cram.o dotlock.o
OBJ=$(ISYNCLIB)/config.o $(ISYNCLIB)/imap.o \
$(ISYNCLIB)/list.o $(ISYNCLIB)/cram.o $(ISYNCLIB)/helpers.o \
pam_imap.o parseconf.o
all: isync $(UTILS) $(PROG)
$(PROG): $(OBJ)
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFINE) -o $@ $^ $(LIBS)
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINE) -c -o $@ $^
isync:
$(MAKE) -C $(ISYNCLIB)
check_user: check_user.c
$(CC) $(CFLAGS) check_user.c -o check_user -lpam -lpam_misc
install:
make all
install -m 755 $(PROG) $(INSTALL_DIR)
ldconfig
clean:
$(RM) *.o $(OBJ) $(PROG) $(UTILS)
distclean: clean
$(RM) Makefile $(ISYNCLIB)/Makefile config.h config.log