source: trunk/athena/etc/xdm/xlogin/Imakefile @ 8289

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