home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
palias10.lzh
/
BNU
/
PALIAS
/
Makefile.osk
< prev
next >
Wrap
Makefile
|
1993-08-02
|
2KB
|
103 lines
#!/bin/make -f
# pathalias -- by steve bellovin, as told to peter honeyman
### begin configuration section
###
# if you can't or don't intend to use dbm files,
# don't bother with DBM or makedb
# DBM = -ldbm
# or if you roll your own ...
# DBM = dbm.r
# or if it's in your lib :)
DBM =
###
# where is getopt (if not in the c library)?
# GETOPT = getopt.r
###
# internet domain name resolver library
# enable RESOLVER in config.h
# RESOLVER = -lresolv
# or if disabled
RESOLVER =
### end of configuration section
CD = chd
MV = copy -r
RM = del
TEMP = /r0
MEM = -m=24
LIBS = -l=/dd/lib/unix.l
CC = cc
COPTS = -qt=$(TEMP)
HDIR = -v=/dd/SYS/UNIX
CFLAGS = $(COPTS) $(HDIR)
LDFLAGS = $(GETOPT) $(LIBS) $(MEM) $(RESOLVER) $(DBM)
YACC = bison
YFLAGS = -dy
YYDEBUG = 0
ODIR = BIN
RDIR = RELS
BINDIR = /DD/ETC/CMDS
OBJ = addlink.r addnode.r domain.r local.r main.r mapit.r mapaux.r mem.r \
parse.r printit.r
HDRS = def.h config.h
CSRC = addlink.c addnode.c domain.c local.c main.c mapit.c mapaux.c mem.c \
printit.c osk.c
LSRC = $(CSRC) parse.c
SRC = $(CSRC) parse.y makedb.c
MAN = pathalias.8
TEXT = Make.honey Makefile.unix Makefile.osk Make.paths.osk \
README CHANGES Readme.OSK
OFILES = pathalias makedb
pathalias: parse.c $(OBJ)
$(CD) $(RDIR) ; $(CC) $(OBJ) $(LDFLAGS) -fd=../$(ODIR)/pathalias
attr $(ODIR)/$@ -epe
all: parse.c $(OFILES)
$(OBJ): $(HDRS)
parse.c: parse.y $(HDRS)
$(YACC) $(YFLAGS) parse.y
@echo '#define YYDEBUG 0' >-parse.c
sed -e '/^# line/d' -e 's/yydebug = 0/yydebug = $(YYDEBUG)/' y.tab.c >+parse.c
makedb: makedb.r
$(CD) $(RDIR) ; $(CC) makedb.r $(LDFLAGS) $(DBM) -fd=../$(ODIR)/makedb
attr $(ODIR)/$@ -epe
makedb.r: config.h
clean:
$(CD) $(RDIR) ; $(RM) *.r
$(RM) y.tab.? parse.c
clobber: clean
$(CD) $(ODIR) ; $(RM) $(OFILES)
tags: $(SRC) $(HDRS)
ctags -w $(HDRS) $(SRC)
bundle:
lha -u palias10.lzh ${TEXT} ${MAN} ${HDRS} ${SRC}
$(RM) palias10.bak
shar:
shar ${TEXT} ${MAN} ${HDRS} ${SRC} ! compress >-palias10.sh.Z
lint: $(LSRC)
lint $(CFLAGS) $(LSRC)
lint makedb.c
lint arpatxt.c
install:
$(CD) $(ODIR) ; $(MV) $(OFILES) -w=$(BINDIR)
@echo "installed pathalias, makedb"
@echo "install pathalias.8 according to local conventions"
@echo Done