home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume30
/
sendopr
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-06-20
|
1KB
|
64 lines
#
# $Author: reggers $
# $Date: 1992/06/10 14:02:03 $
# $Id: Makefile,v 1.10 1992/06/10 14:02:03 reggers Exp $
#
# Make and install things in the right places
#
SHELL=/bin/sh
GET = co
CC=cc
# On SGI's you might need to use a different SIGRET, say void
# Instead you can say "make CFLAGS='-O -DSIGRET=void'"
#
#CFLAGS=-g -DDEBUG
CFLAGS=-O
OWNER=daemon
GROUP=daemon
# where do things go?
OLD=/usr/ccs/old
LIB=/usr/ccs/lib
BIN=/usr/ccs/bin
SPOOL=/usr/spool/sendoprd
MAN1=/usr/ccs/man/man1
MAN8=/usr/ccs/man/man8
MAN1EXT=1
MAN8EXT=8
# Sources
SRC=Makefile sendopr.c tcpopen.c sendopr.man sendopr.h sendoprd.c sendoprd.man
OBJECTS = sendopr.o tcpopen.o
all: sendopr sendoprd
${SRC}:
${GET} $@
.c.o:
${CC} ${CFLAGS} -c $*.c
sendopr: ${OBJECTS}
${CC} -o $@ ${OBJECTS}
sendoprd: sendoprd.c sendoprd.h
${CC} ${CFLAGS} -o $@ $@.c
# On the machine that spools you'll need a spool area
${SPOOL}:
umask 027; mkdir -p ${SPOOL}
chown ${OWNER}.${GROUP} ${SPOOL}
install: sendopr sendopr.man sendoprd sendoprd.man
-cp ${BIN}/sendopr ${OLD}
install -c -m 755 sendopr ${BIN}
-cp ${MAN1}/sendopr.${MAN1EXT} ${OLD}
install -c -m 644 sendopr.man ${MAN1}/sendopr.${MAN1EXT}
-cp ${LIB}/sendoprd ${OLD}
install -s -c -m 6755 -o ${OWNER} -g ${GROUP} sendoprd ${LIB}
-cp ${MAN8}/sendoprd.${MAN8EXT} ${OLD}
install -c -m 644 sendoprd.man ${MAN8}/sendoprd.${MAN8EXT}
clean:
-rm sendoprd *.o core *~