Commit | Line | Data |
---|---|---|
000366e2 KS |
1 | # |
2 | # Cory Hall Unix 11/70 Version 7 | |
3 | # | |
79ddb121 | 4 | # Sccs Id = "@(#)makefile.cor 2.1 %G%"; |
000366e2 KS |
5 | # |
6 | ||
7 | CFLAGS=-O -DCORY | |
8 | DESTDIR=/usr/src | |
9 | CTAGS=/usr/bin/eecs/ctags -w | |
10 | RM=-rm | |
11 | OBJS=aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o edit.o fio.o \ | |
12 | head.o c.local.o lex.o list.o main.o names.o optim.o \ | |
13 | quit.o send.o strings.o temp.o tty.o vars.o version.o | |
14 | ||
15 | SRCS=aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \ | |
16 | head.c c.local.c lex.c list.c main.c names.c optim.c \ | |
17 | quit.c send.c strings.c temp.c tty.c vars.c version.c | |
18 | ||
19 | all: Mail fmt | |
20 | ||
21 | install: all | |
22 | cp Mail $(DESTDIR) | |
23 | cp fmt $(DESTDIR) | |
24 | ||
25 | Mail: $(OBJS) tags | |
26 | $(CC) -n -o Mail $(OBJS) -lretro -lS | |
27 | @size Mail | |
28 | ||
29 | tags: | |
30 | ${CTAGS} *.c; | |
31 | ||
32 | clean: | |
33 | $(RM) -f *.o | |
34 | rm -f Mail a.out fmt x.c xs.c tags core | |
35 | cp /dev/null strings | |
36 | cp /dev/null version.c | |
37 | ||
38 | lint: | |
39 | lint $(CFLAGS) $(SRCS) | |
40 | ||
41 | fmt: fmt.c head.c | |
42 | $(CC) $(CFLAGS) fmt.c head.c -o fmt -lretro -lS | |
43 | $(RM) fmt.o head.o | |
44 | size fmt | |
45 | ||
46 | # | |
47 | # Make the version file. /tmp is always changing. | |
48 | # | |
49 | version.c: /tmp | |
50 | /bin/sh version > version.c | |
51 | ||
52 | print: | |
53 | @pr rcv.h def.h glob.h local.h c.local.h $(SRCS) | |
54 | @pr fmt.c |