-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (34 loc) · 893 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
#
# Makefile for smunged
#
# Been tested on Solaris 2.6/7 (SPARC/Intel)
# FreeBSD 3.3/3.4 (Intel)
# RedHat Linux 6.2 (Intel)
#
# To build for your platform just uncomment the
# appropriate section below :
#
# Solaris
#
#CFLAGS= -Wall -O3 -DSOLARIS
#LDFLAGS= -lxnet -lnsl -lposix4
# FreeBSD
#
#CFLAGS= -Wall -O3 -DFREEBSD -DUSE_LDAP -I/usr/local/include
#LDFLAGS= -L/usr/local/lib -lldap -llber
# Linux
#
CFLAGS= -Wall -O3 #-DLINUX -DUSE_LDAP
LDFLAGS= #-lldap -llber
########################################################################################
CC = gcc
LD = gcc
SMUNGE = smunged
SRCS = config.c main.c server.c mail.c smunge.c sm_ldap.c
OBJS = config.o main.o server.o mail.o smunge.o sm_ldap.o
$(SMUNGE): $(OBJS)
$(CC) $(CFLAGS) -o $(SMUNGE) $(OBJS) $(LDFLAGS)
install:
install smunged /usr/local/sbin/smunged
clean :
-rm -f *.o core core.smunged smunged