|
|
1.1 root 1: # $Header: Makefile,v 2.4 87/02/14 13:48:35 jqj Exp $
2: #
3: # $Log: Makefile,v $
4: # Revision 2.4 87/02/14 13:48:35 jqj
5: # new directory structure
6: #
7: # Revision 2.3 87/01/05 11:20:42 ed
8: # Updated to new directory structure
9: #
10: # Revision 2.2 86/06/25 12:49:28 jqj
11: # use ${CC} instead of cc
12: #
13: # Revision 2.1 85/11/21 10:39:51 jqj
14: # make sure lex.yy.c etc are not around!
15: #
16: # Revision 2.0 85/11/21 07:21:26 jqj
17: # 4.3BSD standard release
18: #
19: # Revision 1.6 85/10/30 07:36:03 root
20: # BINDIR=/usr/new by default
21: #
22: # Revision 1.5 85/05/06 08:12:49 jqj
23: # Almost Beta-test version.
24: #
25: # Revision 1.4 85/03/26 06:09:17 jqj
26: # Revised public alpha-test version, released 26 March 1985
27: #
28: # Revision 1.3 85/03/11 16:38:29 jqj
29: # Public alpha-test version, released 11 March 1985
30: #
31: # Revision 1.2 85/02/21 11:04:38 jqj
32: # alpha test version
33: #
34: # Note: the library, including /usr/include/courier.h, must be installed first
35:
36: BINDIR = ../bin
37: LIBDIR = ../lib
38: MANDIR = ../man
39: INCDIR = ../include
40: COURIERDIR = ../xnscourier
41:
42: RCSREV=
43: RCSNAME=current
44: OBJS = checktype.o constants.o constantcode.o code.o lex.yy.o main.o \
45: misc.o procedures.o symbols.o types.o typecode.o y.tab.o
46: CFLAGS = -I${INCDIR} -DDEBUG -O
47: LDFLAGS =
48:
49: xnscourier: $(OBJS)
50: ${CC} $(CFLAGS) -o xnscourier $(OBJS) -ll \
51: ${LIBDIR}/libcourier.a $(LDFLAGS)
52:
53: install: xnscourier
54: install -c -s xnscourier ${BINDIR}/xnscourier
55:
56: y.tab.h y.tab.c: courier.y
57: -@rm -f y.tab.c y.tab.h
58: @echo expect one shift/reduce conflict
59: yacc -d courier.y
60:
61: lex.yy.c: scanner.l
62: -@rm -f lex.yy.c
63: lex scanner.l
64:
65: $(OBJS): compiler.h
66: lex.yy.o: y.tab.o
67:
68: lint: y.tab.c lex.yy.c
69: lint -hx code.c main.c misc.c symbols.c types.c typecode.c \
70: checktype.c constants.c constantcode.c procedures.c \
71: y.tab.c lex.yy.c
72:
73: tags: code.c main.c misc.c symbols.c types.c typecode.c \
74: checktype.c constants.c constantcode.c \
75: procedures.c compiler.h
76: ctags code.c main.c misc.c symbols.c types.c typecode.c \
77: checktype.c constants.c constantcode.c \
78: procedures.c compiler.h
79:
80: clean:
81: -rm -f $(OBJS) lex.yy.c y.tab.c y.tab.h *.BAK *.CKP xnscourier
82:
83: rcs:
84: rcs -l RCS/*
85: cat ../rcsdescription | ci -u${RCSREV} -q -N${RCSNAME} RCS/*
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.