File:  [CSRG BSD Unix] / 43BSD / contrib / dipress / src / bin / texttoip / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:54 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

# Makefile for Unix Interpress utilities
#
# Copyright (c) 1984, 1985 Xerox Corp.
#
# HISTORY
#  Dec  1 1985 Lee Moore   Xerox Webster Research Center
#	added lint command


DESTBIN=../../../bin
DESTINCLUDE=../../../include
DESTLIB=../../../lib

texttoip: texttoip.o textlex.o $(DESTLIB)/libip.a
	$(CC) $(CFLAGS) -o texttoip texttoip.o textlex.o $(DESTLIB)/libip.a -ll

# Rules for object files -- include file dependencies must be noted here

textlex.o: $(DESTINCLUDE)/iptokens.h $(DESTINCLUDE)/texttoken.h $(DESTINCLUDE)/ipnames.h
	$(CC) $(CFLAGS) -I$(DESTINCLUDE) -c textlex.c

textlex.c: textlex.l

texttoip.o: $(DESTINCLUDE)/iptokens.h $(DESTINCLUDE)/texttoken.h $(DESTINCLUDE)/literal.h
	$(CC) $(CFLAGS) -I$(DESTINCLUDE) -c texttoip.c

# Lint

lint: textlex.c
	lint -I$(DESTINCLUDE) texttoip.c textlex.c $(DESTLIB)/llib-lip.ln -lc

# Installation

install: $(DESTBIN)/texttoip

$(DESTBIN)/texttoip: texttoip
	install -c -s texttoip $(DESTBIN)/texttoip

# Convenience rules:  cleaning

clean:
	rm -f texttoip textlex.c *.o

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.