home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-02-03 | 880 b | 42 lines |
- #
- # getline -- a getline to go with fgets
- #
- # BINDIR is where to put the executable.
- # MANDIR is where the manual pages go, and MANEXT is the extension.
- # for the man pages, e.g., getline.1 or getline.l or getline.m.
-
- BINDIR = /usr/local -- watch out!
- MANDIR = /usr/man/manl
- MANEXT = l
-
- # These should all just be right if the above ones are.
- DIRNAME = $(BINDIR)/getline
- DIRNAME_M = $(MANDIR)/getline.$(MANEXT)
- LDFLAGS =
- CFLAGS = -g -DTEST
-
- getline: getline.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o getline getline.c
- @-size getline
-
- install: $(DIRNAME_M)
-
- $(DIRNAME): getline.c
- $(CC) $(LDFLAGS) -o getline getline.c
- install -c -m 755 getline $(DIRNAME)
-
- $(DIRNAME_M): getline.1
- cp getline.1 $(DIRNAME_M)
- chmod 644 $(DIRNAME_M)
-
-
-
- lint:
- lint getline.c
- tags:
- ctags -w getline.c
- getline.shar:
- shar getline.c Makefile getline.1 > getline.shar
- clean:
- rm -f a.out core *.o getline
-