home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
pc.louisiana.edu/pub/unix/
/
Louisiana_UNIX.tar
/
Louisiana_UNIX
/
date+.zoo
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-10-15
|
2KB
|
76 lines
# Makefile for date+ by jpd@usl.edu
# This is where the install step puts it.
EXDIR=/usr/local/bin
# This is where the man page goes.
#MANDIR=/usr/local/src/man/man1 # reno
#MANEXT=1 # reno
MANDIR=/usr/man/manl
MANEXT=l
MANMODE=644
# flags for lint
LINTFLAGS=-abchxv
# IF you have problems w/ your yacc try bison, Berkeley yacc, or
# some other yacc. Some systems don't allow you to
# increase the number of terminals (mostly AT&T), SCO's does though.
YACC=yacc
#YACC=bison -y
# Command to use to make temporary copies of some source files.
LN=ln
#LN=ln -s
#LN=cp
#### SYSTEM DEFINES ####
# Use this for BSD SunOS ... define BSD4_2 if needed
CFLAGS= -O #-O or -g
LDFLAGS= # -lg might help if -g used in CFLAGS
LIB=
# Use this for SunOS 4.X if you have the System V package installed.
#CC=/usr/5bin/cc
#CFLAGS= -O -DUSG
#LDFLAGS=
#LIB=
# All of the source files
SRC=Makefile date+.c getdate.y
# The objects
OBJS=date+.o getdate.o
all: date+
date+: $(OBJS)
$(CC) ${LDFLAGS} ${OBJS} ${LIB} -o date+
getdate.c: getdate.y
$(YACC) getdate.y; mv y.tab.c getdate.c
@echo "8 shift/reduce conflicts are expected."
# Objects
#help.o: help.c sc.h
# $(CC) ${CFLAGS} ${CRYPT} -c help.c
#getdate.o: getdate.c
# $(CC) ${CFLAGS} -c getdate.c
# other stuff
clean:
rm -f *.o date+ debug core getdate.c
install: date+ $(MANDIR)/date+.$(MANEXT)
cp date+ $(EXDIR)
strip $(EXDIR)/date+
$(MANDIR)/date+.$(MANEXT):
cp date+.1 $(MANDIR)/date+.$(MANEXT)
chmod $(MANMODE) $(MANDIR)/date+.$(MANEXT)