`# $Id: Makefile.host,v 2.8 2010/12/03 14:56:10 ksb Exp $ # platform recipe for autologin # Jeff W. Stewart, Purdue University Computing Center + ksb SHELL=/bin/sh DESTDIR= 'ifelse( HOSTTYPE,`PARAGON',` BINDIR= ${DESTDIR}/sbin ',` BINDIR= ${DESTDIR}/usr/local/sbin ')` MANDIR=${DESTDIR}/usr/local/man/man8 INCLUDE= DEBUG= -g DEFS= -DPUCC -D'HOSTTYPE` -DHOSTOS='HOSTOS`'ifelse( HOSTTYPE,`SUN3',` -DSUNOS', HOSTTYPE,`SUN4',` -DSUNOS', HOSTTYPE,`EPIX',` -systype posix `-I/usr/include'')` CFLAGS= ${DEBUG} ${DEFS} ${INCLUDE} GENC= 'ifelse(MKCMD,`no',`',`main.c')` GENH= 'ifelse(MKCMD,`no',`',`main.h')` GEN= ${GENC} ${GENH} HDR= machine.h'ifelse(MKCMD,`no',` main.h')` SRC= autologin.c'ifelse(MKCMD,`no',` main.c')` OBJ= autologin.o main.o'ifelse(HOSTTYPE,`EPIX',` putenv.o setgroups.o getut.o')` MAN= autologin.man OTHER= README INSTALL TODO autologin.m autologin.mh autolocal.ksh SOURCE= Makefile ITO.spec ${OTHER} ${SRC} ${HDR} ${MAN} 'ifelse(HOSTTYPE,`NEXT2',`.SUFFIXES: .SUFFIXES: .c .h .o .s',`')` all: autologin autologin: ${OBJ} ${CC} ${CFLAGS} -o autologin ${OBJ}'ifelse( HOSTTYPE,`IBMR2',` -ls', HOSTTYPE,`EPIX',` /usr/lib/libbsd.a')` 'ifelse(MKCMD,`no',`', `main.h: main.c main.c: autologin.m mkcmd autologin.m -(cmp -s prog.c main.c || (cp prog.c main.c && echo main.c updated)) -(cmp -s prog.h main.h || (cp prog.h main.h && echo main.h updated)) rm -f prog.[ch]')` # On keep (EPIX), putenv.o is extracted (ar x) from /usr/lib/libc.a # and setgroups.o is extracted from libbsd.a # putenv.o: ar x /usr/lib/libc.a $@ setgroups.o: ar x /usr/lib/libbsd.a $@ getut.o: ar x /sysv/usr/lib/libc.a $@ clean: FRC rm -f autologin *.o errs core Makefile.bak a.out lint.errs ${GEN} lint: ${HDR} ${SRC} ${GEN} FRC lint -h ${CDEFS} ${INCLUDE} ${GEN} ${SRC} install: all ${BINDIR} ${MANDIR} install -c -s -m 755 autologin ${BINDIR} ${BINDIR} ${MANDIR}: install -dr -m 755 $@ distrib: distrib -c ${BINDIR}/autologin depend: ${HDR} ${SRC} ${GEN} maketd -a ${HDR} ${SRC} ${GEN} spotless: clean rcsclean Makefile ${HDR} ${SRC} source: ${SOURCE} ${SOURCE}: co -q $@ FRC: # DO NOT DELETE THIS LINE - maketd DEPENDS ON IT S=/usr/include/sys I=/usr/include autologin.o: autologin.c machine.h main.h main.o: autologin.m machine.h main.c main.h # *** Do not add anything here - It will go away. *** 'dnl