|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 1241 (0x4d9)
Types: TextFile
Names: »Makefile«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦this⟧ »EUUGD11/euug-87hel/sec8/pathalias/Makefile«
#!/bin/make -f
# pathalias -- by steve bellovin, as told to peter honeyman
### congiguration 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.o
###
# where is getopt (if not in the c library)?
# GETOPT = -lgetopt
### end of configuration section
CC = cc
CFLAGS = -O
LDFLAGS = -s
YFLAGS = -d
OBJ = addlink.o addnode.o extern.o local.o main.o mapit.o mapaux.o mem.o parse.o printit.o
HDRS = def.h config.h
CSRC = addlink.c addnode.c extern.c local.c main.c mapit.c mapaux.c mem.c printit.c
SRC = $(CSRC) parse.y
LSRC = $(CSRC) parse.c
pathalias: $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) $(GETOPT) -o pathalias
all: pathalias makedb
$(OBJ): $(HDRS)
parse.c: parse.y $(HDRS)
$(YACC) $(YFLAGS) parse.y
mv y.tab.c parse.c
makedb: makedb.o
$(CC) $(LDFLAGS) makedb.o $(DBM) $(GETOPT) -o makedb
makedb.o: config.h
clean:
rm -f *.o y.tab.? parse.c
clobber: clean
rm -f pathalias makedb
tags: $(SRC) $(HDRS) makedb.c
ctags -w $(HDRS) $(SRC)
bundle:
@bundle README CHANGES pathalias.1 Makefile ${HDRS} ${SRC} makedb.c
lint: $(LSRC)
lint $(CFLAGS) $(LSRC)
lint makedb.c
install:
@echo "install pathalias according to local conventions"