File:  [CSRG BSD Unix] / 43BSDTahoe / new / dipress / src / lib / libgetopt / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

# "getopt" -- for systems that don't have it already
#
# Copyright (c) 1984, 1985, 1986 Xerox Corp.
#

DESTINCLUDE=../../../include
DESTLIB=../../../lib


libgetopt.a: getopt.o
	ar r libgetopt.a getopt.o


# parts of the Interpress library

getopt.o:
	$(CC) -c -I$(DESTINCLUDE) getopt.c

llib-lgetopt.ln: getopt.c
	lint -Cgetopt -I$(DESTINCLUDE) getopt.c

# helpers

lint:
	lint -au -I$(DESTINCLUDE) getopt.c

install: $(DESTLIB)/libgetopt.a  $(DESTLIB)/llib-lgetopt.ln

$(DESTLIB)/libgetopt.a: libgetopt.a
	install -c libgetopt.a  $(DESTLIB)
	ranlib $(DESTLIB)/libgetopt.a

$(DESTLIB)/llib-lgetopt.ln: llib-lgetopt.ln
	install -c llib-lgetopt.ln $(DESTLIB)

clean:
	rm -f libgetopt.a llib-lgetopt.ln *.o

unix.superglobalmegacorp.com

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