home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
CPROTOS.ZIP
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1991-02-19
|
2KB
|
83 lines
# $Id$
#
# Makefile for proto
#
PROG= proto
BIN= ${DESTDIR}/usr/local/bin
LIB= ${DESTDIR}/usr/local/lib
I=/usr/include
S=/usr/include/sys
L=/usr/include/local
P=
INCLUDE=
DEBUG= -g
CDEFS=
CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE}
YFLAGS= -dv
GENC= gram.c scan.c
GENH=
GEN= ${GENC} ${GENH}
HDR= y.tab.h
SRC= main.c li.c proto.c utils.c tr.c
DEP= ${GENC} ${LINKC} ${SRC}
OBJ= gram.o scan.o main.o li.o proto.o utils.o tr.o
MAN=
OTHER= README gram.y scan.l
SOURCE= Makefile ${OTHER} ${MAN} ${HDR} ${SRC}
all: ${PROG}
${PROG}:$P ${OBJ}
${CC} -o $@ ${CFLAGS} ${OBJ}
# Yacc and Lex
y.tab.h: gram.c
gram.c: gram.y
scan.c: scan.l
clean: FRC
rm -f Makefile.bak ${PROG} ${GEN} ${LINK} ${OBJ} a.out core errs lint.out tags
calls: ${SRC} ${HDR} ${GEN} FRC
calls ${CDEFS} ${INCLUDE} ${DEP}
depend: ${SRC} ${HDR} ${GEN} FRC
maketd -a ${CDEFS} ${INCLUDE} ${DEP}
dirs: ${BIN} ${LIB}
install: all dirs FRC
install -cs ${PROG} ${BIN}
lint: ${SRC} ${HDR} ${GEN} FRC
lint -h ${CDEFS} ${INCLUDE} ${DEP}
mkcat: ${MAN}
mkcat ${MAN}
print: source FRC
lpr -J'${PROG} source' ${SOURCE}
source: ${SOURCE}
spotless: clean
rcsclean ${SOURCE}
tags: ${HDR} ${SRC} ${GEN}
ctags -t ${HDR} ${SRC} ${GEN}
${SOURCE}:
co -q $@
FRC:
# DO NOT DELETE THIS LINE - make depend DEPENDS ON IT
# *** Do not add anything here - It will go away. ***