|
|
1.1 root 1: # Makefile for Unix Interpress utilities
2: #
3: # Copyright (c) 1984, 1985, 1986 Xerox Corp.
4: #
5: # HISTORY
6: # 03-Jul-86 Lee Moore (lee) at Xerox Webster Research Center
7: # Added "-lm" to the load as a favor to pyramids.
8: #
9: # Dec 1 1985 Lee Moore Xerox Webster Research Center
10: # added lint command
11:
12:
13: DESTBIN=../../../bin
14: DESTINCLUDE=../../../include
15: DESTLIB=../../../lib
16:
17: texttoip: texttoip.o textlex.o $(DESTLIB)/libip.a
18: $(CC) $(CFLAGS) -o texttoip texttoip.o textlex.o \
19: $(DESTLIB)/libip.a -ll -lm
20:
21: # Rules for object files -- include file dependencies must be noted here
22:
23: textlex.o: $(DESTINCLUDE)/iptokens.h texttoken.h $(DESTINCLUDE)/ipnames.h
24: $(CC) $(CFLAGS) -I$(DESTINCLUDE) -c textlex.c
25:
26: textlex.c: textlex.l
27:
28: texttoip.o: $(DESTINCLUDE)/iptokens.h texttoken.h $(DESTINCLUDE)/literal.h
29: $(CC) $(CFLAGS) -I$(DESTINCLUDE) -c texttoip.c
30:
31: # Lint
32:
33: lint: textlex.c
34: lint -I$(DESTINCLUDE) texttoip.c textlex.c $(DESTLIB)/llib-lip.ln -lc
35:
36: # Installation
37:
38: install: $(DESTBIN)/texttoip
39:
40: $(DESTBIN)/texttoip: texttoip
41: install -c -s texttoip $(DESTBIN)/texttoip
42:
43: # Convenience rules: cleaning
44:
45: clean:
46: rm -f texttoip textlex.c *.o
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.