Commit | Line | Data |
---|---|---|
15eea6e6 BJ |
1 | .SUFFIXES: .o .x .c |
2 | CFLAGS=-O | |
3 | .c.o: | |
4 | $(CC) $(CFLAGS) -c $< | |
5 | .c.x: | |
6 | $(CC) $(CFLAGS) -c $< | |
7 | ar ru libI77.a $*.o | |
8 | -rm $*.o | |
9 | > $*.x | |
10 | FILES=backspace.x dfe.x due.x iio.x inquire.x \ | |
11 | lib.x rewind.x rsfe.x \ | |
12 | rdfmt.x sue.x uio.x wsfe.x sfe.x fmt.x \ | |
13 | lio.x lread.x open.x close.x util.x \ | |
14 | endfile.x wrtfmt.x err.x fmtlib.x | |
15 | SOURCE=rewind.c endfile.c uio.c due.c dfe.c \ | |
16 | Makefile backspace.c close.c err.c fio.h fmt.c fmt.h \ | |
17 | fmtlib.c ftest.c lib.c open.c rdfmt.c rsfe.c sfe.c \ | |
18 | sue.c util.c wrtfmt.c wsfe.c iio.c lio.h lio.c \ | |
19 | inquire.c lread.c | |
20 | libI77.a: $(FILES) | |
21 | lio.h: | |
22 | chmod 0666 lio.h | |
23 | lio.x lread.x: lio.h | |
24 | fmt.x rdfmt.x rsfe.x testfmt.x wrtfmt.x wsfe.x: fmt.h | |
25 | $(FILES): fio.h /usr/include/stdio.h/ | |
26 | install: | |
27 | cp libI77.a $(DESTDIR)/usr/lib/libI77.a | |
28 | ranlib $(DESTDIR)/usr/lib/libI77.a | |
29 | clean: | |
30 | rm *.x libI77.a | |
31 | list: | |
32 | @pr -w72 *.h *.c Makefile |