|
|
1.1 root 1: BINDIR = /usr/argo/bin
2: LIBDIR = /usr/argo/lib
3: INCDIR = /usr/argo/include
4: #
5: #
6: # $Header: Makefile,v 2.1 88/09/19 12:54:18 nhall Exp $
7: # $Source: /usr/argo/src/xebec/RCS/Makefile,v $
8: #
9: #
10: #
11: # Makefile for xebec
12: # This source desperately needs rewriting!
13: # It works, but it's grotesque.
14: # It uses fmq, the binary of which is included here.
15: # Source is not available.
16: # Strictly speaking, there's no reason for fmq to be needed any more.
17: #
18: #CFLAGS =
19: CFLAGS = -DDEBUG
20: CC = /bin/cc
21:
22: .SUFFIXES: .bnf .h .c .s .o
23: #
24: OBJ =\
25: llscan.o\
26: putdriver.o\
27: procs.o\
28: sets.o\
29: main.o\
30: xebec.o\
31: malloc.o\
32: llparse.o
33:
34: CSRC =\
35: putdriver.c\
36: sets.c\
37: procs.c\
38: xebec.c\
39: malloc.c\
40: main.c\
41: llscan.c\
42: llparse.c
43:
44: # Default RCS arguments
45: #
46: RCSSOURCE = Makefile $(CSRC) debug.h llparse.h main.h malloc.h procs.h\
47: sets.h states.h test_def.h xebec.h
48: RCSARGS = -f -r2.0 -nBETA
49:
50: all: xebec
51: @echo All versions up to date
52:
53: lint:
54: /usr/bin/lint $(CFLAGS) -DLINT $(CSRC)
55:
56: clean:
57: rm -f junk core a.out *.o test_events.h test_driver.c test_states.h \
58: test_states.init test_astring.c made xebec tags
59:
60: reconfigure:
61: chmod +w Makefile
62: ed Makefile < /tmp/edscript
63: chmod -w Makefile
64:
65: .c.o:
66: $(CC) -c $(CFLAGS) $*.c
67: ld -x -r -o tmp$$$$ $*.o; mv tmp$$$$ $*.o
68: rm -f $*.s
69:
70: xebec: $(OBJ)
71: $(CC) $(LFLAGS) $(CFLAGS) -o xebec $(OBJ)
72: chmod 755 xebec
73:
74: install:
75: install -c -s -g kmem xebec $(BINDIR)/xebec
76:
77: #
78: ci:
79: ci -q -m"$(RCSMSG)" $(RCSARGS) $(RCSSOURCE)
80: -rcs -q -u $(RCSSOURCE)
81: co -q $(RCSSOURCE)
82: #
83: # Same thing but force checkin
84: #
85: #
86: # Check out source (locked)
87: #
88: co:
89: co -l -q $(RCSSOURCE)
90: #
91: # Lock source
92: #
93: lock:
94: rcs -l -q $(RCSSOURCE)
95:
96: llparse.o:xebec.o
97: llscan.o:xebec.o
98:
99: depend:
100: @grep '^#[ ]*include' $(DSRC) \
101: | sed 's/:[^"]*"\([^"]*\).*/: \1/' \
102: | sed 's/\.[cmyl]:/.o:/' > Makedep
103: @echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
104: @echo '$$r Makedep' >> eddep
105: @echo 'w' >> eddep
106: @echo 'q' >> eddep
107: @cp Makefile Makefile.bak
108: @ed - Makefile < eddep
109: @rm eddep Makedep
110: @echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
111: @echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
112: @echo '# see Make depend above ' >> Makefile
113:
114: # DO NOT DELETE THIS LINE -- Make depend uses it
115: # DEPENDENCIES MUST END AT END OF FILE
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.