]>
Commit | Line | Data |
---|---|---|
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= | |
19 | CFLAGS = -I../../include -O | |
20 | LDFLAGS = -L../../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 dcmmaint.c printer.c misc.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 dcmmaint.o printer.o misc.o | |
32 | ||
33 | all: moira | |
34 | ||
35 | moira: ${OBJS} | |
36 | rm -f moira | |
37 | cc ${CFLAGS} ${LDFLAGS} -o moira ${OBJS} ${LIBS} | |
38 | ||
39 | lint: | |
40 | lint -I../../include *.c | |
41 | ||
42 | install: moira | |
43 | install -s moira ${DESTDIR}/usr/athena/moira | |
44 | rm -f ${DESTDIR}/usr/athena/usermaint | |
45 | rm -f ${DESTDIR}/usr/athena/listmaint | |
46 | rm -f ${DESTDIR}/usr/athena/dcmmaint | |
47 | ln -s /usr/athena/moira ${DESTDIR}/usr/athena/usermaint | |
48 | ln -s /usr/athena/moira ${DESTDIR}/usr/athena/listmaint | |
49 | ln -s /usr/athena/moira ${DESTDIR}/usr/athena/dcmmaint | |
50 | ||
51 | clean: | |
52 | rm -f *.o *~ | |
53 | rm -f moira | |
54 | cd Doc; make clean | |
55 | ||
56 | # Typing 'make saber' at the command line will allow load and link against the | |
57 | # correct libraries when using saber C. | |
58 | ||
59 | saber: ; | |
60 | /mit/kaufer/saber -I/mit/smsdev/include -DDEBUG ${LDFLAGS} \ | |
61 | ${SRCS} ${LIBS} |