]>
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= | |
a8c2e76b | 19 | CFLAGS = -I../../include -I. -O |
507c84bb | 20 | LDFLAGS = -L../../lib |
f7ba8e6c | 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 \ | |
a8c2e76b | 29 | menu.c menus.c nfs.c pobox.c quota.c user.c dcmmaint.c printer.c \ |
30 | misc.c | |
31 | OBJS = attach.o cluster.o delete.o globals.o lists.o main.o menu.o \ | |
32 | menus.o nfs.o pobox.o quota.o user.o utils.o dcmmaint.o printer.o \ | |
33 | misc.o | |
f7ba8e6c | 34 | |
d2b91f47 | 35 | all: moira |
f7ba8e6c | 36 | |
d2b91f47 | 37 | moira: ${OBJS} |
38 | rm -f moira | |
39 | cc ${CFLAGS} ${LDFLAGS} -o moira ${OBJS} ${LIBS} | |
f7ba8e6c | 40 | |
41 | lint: | |
42 | lint -I../../include *.c | |
43 | ||
d2b91f47 | 44 | install: moira |
45 | install -s moira ${DESTDIR}/usr/athena/moira | |
1daa34a2 | 46 | rm -f ${DESTDIR}/usr/athena/usermaint |
47 | rm -f ${DESTDIR}/usr/athena/listmaint | |
08a3883e | 48 | rm -f ${DESTDIR}/usr/athena/dcmmaint |
d2b91f47 | 49 | ln -s /usr/athena/moira ${DESTDIR}/usr/athena/usermaint |
50 | ln -s /usr/athena/moira ${DESTDIR}/usr/athena/listmaint | |
08a3883e | 51 | ln -s /usr/athena/moira ${DESTDIR}/usr/athena/dcmmaint |
1daa34a2 | 52 | |
f7ba8e6c | 53 | clean: |
54 | rm -f *.o *~ | |
d2b91f47 | 55 | rm -f moira |
018bd170 | 56 | cd Doc; make clean |
f7ba8e6c | 57 | |
58 | # Typing 'make saber' at the command line will allow load and link against the | |
59 | # correct libraries when using saber C. | |
60 | ||
61 | saber: ; | |
62 | /mit/kaufer/saber -I/mit/smsdev/include -DDEBUG ${LDFLAGS} \ | |
63 | ${SRCS} ${LIBS} |