summaryrefslogtreecommitdiffstats
path: root/sesman/Makefile
blob: a9b4ef04c6604c132b3f0f9b7d2d2e56cd2d6a57 (plain)
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

SESMANOBJ = sesman.o config.o tcp.o sig.o session.o env.o \
            ../common/os_calls.o \
            ../common/d3des.o \
            ../common/list.o \
            ../common/file.o \
            ../common/log.o

SESRUNOBJ = sesrun.o config.o tcp.o \
            ../common/os_calls.o \
            ../common/d3des.o \
            ../common/list.o \
            ../common/file.o \
            ../common/log.o

CFLAGS = -Wall -O2 -I../common
LDFLAGS = -L /usr/gnu/lib
CC = gcc

all: pam tools

nopam: $(SESMANOBJ) verify_user.o
	$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user.o -ldl -lcrypt

pam: $(SESMANOBJ) verify_user_pam.o
	$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam.o -ldl -lpam

pam_userpass: $(SESMANOBJ) verify_user_pam_userpass.o
	$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam_userpass.o -ldl -lpam -lpam_userpass

tools: $(SESRUNOBJ)
	$(CC) $(LDFLAGS) -o sesrun $(SESRUNOBJ) -ldl

clean:
	rm -f $(SESMANOBJ) verify_user.o verify_user_pam.o verify_user_pam_userpass.o sesman sesrun.o sesrun