1 | # $Id: Imakefile,v 1.37 1996-04-19 02:25:14 cfields Exp $ |
---|
2 | |
---|
3 | #if defined(_AIX) && (AIXV >= 30) |
---|
4 | MACHLIBS = -lodm -lcfg -ls |
---|
5 | #endif |
---|
6 | #ifdef SOLARIS |
---|
7 | MACHDEFS=-DSOLARIS_MAE |
---|
8 | MACHLIBS=-lbsd |
---|
9 | #endif |
---|
10 | #ifdef ultrix |
---|
11 | MACHLIBS = -lnsyslog |
---|
12 | #endif |
---|
13 | |
---|
14 | WCL=../wcl/libWc.a |
---|
15 | ARISRC=AriRegAll.c |
---|
16 | ARIOBJ=AriRegAll.o |
---|
17 | |
---|
18 | #if defined(sgi) || defined(SOLARIS) |
---|
19 | /* R5 changes actually, not SGI. */ |
---|
20 | WCL=$(WCLDIR)/Wc/libWc.a |
---|
21 | WCLDEFS=-I$(WCLDIR) |
---|
22 | ARISRC= |
---|
23 | ARIOBJ=$(WCLDIR)/Xp/libXp.a |
---|
24 | #endif |
---|
25 | |
---|
26 | #ifdef sgi |
---|
27 | /* AFS 3.4a rx depends on sys now; sys already depended on rx */ |
---|
28 | MACHLIBS = -lsys ../misc/libnanny.a |
---|
29 | |
---|
30 | /* SGI doesn't include the clock in their Xaw anymore. */ |
---|
31 | CLOCKSRC=Clock.c |
---|
32 | CLOCKOBJ=Clock.o |
---|
33 | #endif |
---|
34 | |
---|
35 | KRB5_DEFS = -DKRB5 -I$(KRB5DIR)/include |
---|
36 | KRB5_LIBS = -L$(KRB5DIR)/lib -lkrb5 -lcrypto -lcom_err |
---|
37 | |
---|
38 | DEFINES = -DSETPAG $(KRB5_DEFS) $(MACHDEFS) $(WCLDEFS) |
---|
39 | AFSLIBS = -L$(AFSDIR)/lib -L$(AFSDIR)/lib/afs -lsys -lrx -llwp |
---|
40 | |
---|
41 | |
---|
42 | SRCS = xlogin.c ${ARISRC} verify.c SmeBSB.c StringToPixel.c ${CLOCKSRC} |
---|
43 | OBJS = xlogin.o ${ARIOBJ} verify.o SmeBSB.o StringToPixel.o ${CLOCKOBJ} |
---|
44 | LIBS = -lXaw ${WCL} -lXmu -lXt -lXext -lX11 -lkrb -ldes -lhesiod \ |
---|
45 | $(KRB5_LIBS) $(AFSLIBS) $(MACHLIBS) -lm |
---|
46 | |
---|
47 | #ifdef _IBMR2 |
---|
48 | PRESOURCES=Xlogin.rios.presed |
---|
49 | #endif |
---|
50 | #ifdef SOLARIS |
---|
51 | PRESOURCES=Xlogin.sun4.presed |
---|
52 | #endif |
---|
53 | #ifdef sgi |
---|
54 | PRESOURCES=Xlogin.s/**/gi.presed |
---|
55 | #endif |
---|
56 | #ifdef ultrix |
---|
57 | PRESOURCES=Xlogin.presed |
---|
58 | #endif |
---|
59 | |
---|
60 | create_dir(/etc/athena/login) |
---|
61 | create_dir(/etc/athena/login/bitmaps) |
---|
62 | SimpleProgram(timeout,timeout.o,,$(ATHBINDIR)) |
---|
63 | |
---|
64 | static_program(xlogin,$(OBJS),,$(LIBS)) |
---|
65 | install_program(xlogin,,$(ATHRETCDIR)) |
---|
66 | |
---|
67 | all:: Xlogin |
---|
68 | install:: Xlogin |
---|
69 | |
---|
70 | Xlogin: $(PRESOURCES) $(ATHVERS) |
---|
71 | . $(ATHVERS); \ |
---|
72 | sed -e "s/ATHENA_VERSION/$$ATHMAJV.$$ATHMINV/" \ |
---|
73 | -e "s:MOTD_FILE:/afs/athena.mit.edu/system/config/motd/login.$$ATHMAJV$$ATHMINV:" \ |
---|
74 | $(PRESOURCES) > Xlogin |
---|
75 | |
---|
76 | install_file(bitmaps/check,/etc/athena/login/bitmaps/check) |
---|
77 | install_file(bitmaps/question,/etc/athena/login/bitmaps/question) |
---|
78 | install_file(bitmaps/warning,/etc/athena/login/bitmaps/warning) |
---|
79 | install_file(bitmaps/white,/etc/athena/login/bitmaps/white) |
---|
80 | install_file(bitmaps/owl,/etc/athena/login/bitmaps/owl) |
---|
81 | install_file(bitmaps/owleyes0.xbm,/etc/athena/login/bitmaps/owleyes0.xbm) |
---|
82 | install_file(bitmaps/owleyes1.xbm,/etc/athena/login/bitmaps/owleyes1.xbm) |
---|
83 | install_file(bitmaps/owleyes2.xbm,/etc/athena/login/bitmaps/owleyes2.xbm) |
---|
84 | install_file(bitmaps/owleyes3.xbm,/etc/athena/login/bitmaps/owleyes3.xbm) |
---|
85 | install_file(bitmaps/owleyes4.xbm,/etc/athena/login/bitmaps/owleyes4.xbm) |
---|
86 | install_file(bitmaps/owleyes5.xbm,/etc/athena/login/bitmaps/owleyes5.xbm) |
---|
87 | install_file(bitmaps/is,/etc/athena/login/bitmaps/is) |
---|
88 | install_file(bitmaps/is0.xbm,/etc/athena/login/bitmaps/is0.xbm) |
---|
89 | install_file(bitmaps/is1.xbm,/etc/athena/login/bitmaps/is1.xbm) |
---|
90 | install_file(bitmaps/is2.xbm,/etc/athena/login/bitmaps/is2.xbm) |
---|
91 | install_file(bitmaps/is3.xbm,/etc/athena/login/bitmaps/is3.xbm) |
---|
92 | install_file(bitmaps/is4.xbm,/etc/athena/login/bitmaps/is4.xbm) |
---|
93 | install_file(bitmaps/is5.xbm,/etc/athena/login/bitmaps/is5.xbm) |
---|
94 | install_file(bitmaps/Ctrl-P,/etc/athena/login/bitmaps/Ctrl-P) |
---|
95 | install_file(bitmaps/F1,/etc/athena/login/bitmaps/F1) |
---|
96 | install_file(bitmaps/F2,/etc/athena/login/bitmaps/F2) |
---|
97 | install_file(bitmaps/F3,/etc/athena/login/bitmaps/F3) |
---|
98 | install_file(bitmaps/F4,/etc/athena/login/bitmaps/F4) |
---|
99 | install_file(bitmaps/F5,/etc/athena/login/bitmaps/F5) |
---|
100 | install_file(bitmaps/F6,/etc/athena/login/bitmaps/F6) |
---|
101 | install_file(bitmaps/Prev,/etc/athena/login/bitmaps/Prev) |
---|
102 | install_file(bitmaps/Shift-F1,/etc/athena/login/bitmaps/Shift-F1) |
---|
103 | install_file(bitmaps/Shift-F2,/etc/athena/login/bitmaps/Shift-F2) |
---|
104 | install_file(bitmaps/Shift-F3,/etc/athena/login/bitmaps/Shift-F3) |
---|
105 | install_file(bitmaps/Shift-F4,/etc/athena/login/bitmaps/Shift-F4) |
---|
106 | install_file(bitmaps/Shift-F5,/etc/athena/login/bitmaps/Shift-F5) |
---|
107 | install_file(bitmaps/Shift-F6,/etc/athena/login/bitmaps/Shift-F6) |
---|
108 | install_file(bitmaps/Shift-F7,/etc/athena/login/bitmaps/Shift-F7) |
---|
109 | install_file(bitmaps/Shift-F8,/etc/athena/login/bitmaps/Shift-F8) |
---|
110 | install_file(Xlogin,/etc/athena/login/Xlogin) |
---|
111 | install_man(timeout.1,timeout.1) |
---|
112 | install_man(xlogin.8,xlogin.8) |
---|