]>
Commit | Line | Data |
---|---|---|
f7ba8e6c | 1 | # This is the Makefile for allmaint, the SMS client that allows |
2 | # a user to maintaint most important parts of the SMS database. | |
3 | # It Contains: The Makefile | |
4 | # | |
5 | # Created: 5/9/88 | |
6 | # By: Chris D. Peterson | |
7 | # | |
8 | # $Source$ | |
9 | # $Author$ | |
10 | # $Header$ | |
11 | # | |
12 | # Copyright 1987, 1988 by the Massachusetts Institute of Technology. | |
13 | # | |
14 | # For further information on copyright and distribution | |
15 | # see the file mit-copyright.h | |
16 | # | |
17 | ||
18 | DESTDIR= | |
1daa34a2 | 19 | CFLAGS = -I/mit/smsdev/include -O |
f7ba8e6c | 20 | LDFLAGS = -L/mit/smsdev/lib |
21 | CONFDIR = ${DESTDIR}/usr/athena | |
22 | BINDIR = ${DESTDIR}/bin | |
23 | ||
24 | SMSLIB = -lsms -lgdb -lcom_err | |
25 | LIBS = ${SMSLIB} -lcurses -ltermcap -lkrb -ldes | |
26 | ||
27 | ||
28 | SRCS = utils.c attach.c cluster.c delete.c globals.c lists.c main.c \ | |
29 | menus.c nfs.c pobox.c quota.c user.c | |
30 | OBJS = attach.o cluster.o delete.o globals.o lists.o main.o menus.o nfs.o \ | |
31 | pobox.o quota.o user.o utils.o | |
32 | ||
33 | all: sms | |
34 | ||
35 | sms: ${OBJS} | |
36 | cc ${CFLAGS} ${LDFLAGS} -o sms ${OBJS} ${LIBS} | |
37 | ||
38 | lint: | |
39 | lint -I../../include *.c | |
40 | ||
1daa34a2 | 41 | install: sms |
42 | install -s sms ${DESTDIR}/usr/athena/sms | |
43 | rm -f ${DESTDIR}/usr/athena/usermaint | |
44 | rm -f ${DESTDIR}/usr/athena/listmaint | |
45 | ln -s /usr/athena/sms ${DESTDIR}/usr/athena/usermaint | |
46 | ln -s /usr/athena/sms ${DESTDIR}/usr/athena/listmaint | |
47 | ||
f7ba8e6c | 48 | clean: |
49 | rm -f *.o *~ | |
50 | rm -f sms | |
51 | ||
52 | ||
53 | # Typing 'make saber' at the command line will allow load and link against the | |
54 | # correct libraries when using saber C. | |
55 | ||
56 | saber: ; | |
57 | /mit/kaufer/saber -I/mit/smsdev/include -DDEBUG ${LDFLAGS} \ | |
58 | ${SRCS} ${LIBS} |