Rev | Line | |
---|
[1] | 1 | MCLIBS=alloc.txt c.txt fileio.txt fileio2.txt mclib.c scanf.txt\ |
---|
| 2 | stdio.txt stdio2.txt string.txt |
---|
| 3 | |
---|
| 4 | MCUTILS=uf.c |
---|
| 5 | |
---|
| 6 | DESTDIR=.. |
---|
| 7 | |
---|
| 8 | all: mc2.o |
---|
| 9 | |
---|
| 10 | mc: mc.c |
---|
| 11 | cc mc.c -o mc |
---|
| 12 | |
---|
| 13 | c.out: mc mc2.c mclib.c |
---|
| 14 | mc mc2.c |
---|
| 15 | |
---|
| 16 | mc2.o: c.out |
---|
| 17 | as09 c.txt -o mc2.o -v -O |
---|
| 18 | |
---|
| 19 | lint: mc.c |
---|
| 20 | lint mc.c >lint |
---|
| 21 | |
---|
| 22 | shar: diff_to_mc2 |
---|
| 23 | shar COPYRIGHT README MANIFEST makefile $(MCLIBS) $(MCUTILS) diff_to_mc2 >mc.shar.0 |
---|
| 24 | shar mc.c >mc.shar.1 |
---|
| 25 | |
---|
| 26 | diff_to_mc2: mc.c mc2.c |
---|
| 27 | -diff -c mc.c mc2.c >diff_to_mc2 |
---|
| 28 | |
---|
| 29 | mc2.c: |
---|
| 30 | patch <diff_to_mc2 -o mc2.c |
---|
| 31 | |
---|
| 32 | clean: |
---|
| 33 | rm -f mc c.out mc2.o lint |
---|
| 34 | |
---|
| 35 | install: mc |
---|
| 36 | cp mc $(DESTDIR) |
---|
Note: See
TracBrowser
for help on using the repository browser.