home *** CD-ROM | disk | FTP | other *** search
Makefile | 1988-01-31 | 1.4 KB | 55 lines |
- # Your library directory.
- LIBDIR=/usr/lib
- # Your local command directory.
- LBIN=/usr/local/bin
- OSFLAG=-DUNIX_S5 # For System V machines.
- # OSFLAG=-DUNIX_V7 # For Version 7 machines.
- # For those poor people who need ranlib
- # RANLIB=ranlib $(LIBDIR)/libmodemcap.a
- # Standard Bourne shell.
- SHELL=/bin/sh
-
- CFLAGS=-O
- LDFLAGS=-s
-
- OFILES=mgetent.o mgetstr.o mgetflag.o mgetnum.o mdial.o merror.o \
- initmodem.o hangup.o dial.o
-
- CFILES=mgetent.c mgetstr.c mgetflag.c mgetnum.c mdial.c merror.c \
- initmodem.c hangup.c dial.c
-
- LFILES=libmodemcap.a(mgetent.o)\
- libmodemcap.a(mgetstr.o)\
- libmodemcap.a(mgetflag.o)\
- libmodemcap.a(mgetnum.o)\
- libmodemcap.a(mdial.o)\
- libmodemcap.a(merror.o)\
- libmodemcap.a(initmodem.o)\
- libmodemcap.a(hangup.o)\
- libmodemcap.a(dial.o)
-
- all: $(LFILES)
-
- install: all call
- cp modemcap.h /usr/include
- cp modemcap /etc/modemcap
- cp modemtype /etc/modemtype
- cp libmodemcap.a $(LIBDIR)
- chmod 644 /usr/include/modemcap.h /etc/modemcap /etc/modemtype $(LIBDIR)/libmodemcap.a
- cp call $(LBIN)/call
- chmod 711 $(LBIN)/call
-
- call: call.c libmodemcap.a
- cc $(LDFLAGS) $(CFLAGS) call.c libmodemcap.a -o call
-
- initmodem.o: initmodem.c /usr/include/modemcap.h
-
- mdial.o: mdial.c /usr/include/modemcap.h
-
- hangup.o: hangup.c /usr/include/modemcap.h
-
- dial.o: dial.c /usr/include/modemcap.h
-
- shar: README $(CFILES) makefile modemcap modemtype modemcap.h call.c
- shar README makefile modemcap modemtype modemcap.h $(CFILES) call.c > modem.shar
-