home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-09-23 | 1.3 KB | 64 lines |
- # Copyright (c) 1989 Citadel
- # All Rights Reserved
-
- # makefile 1.6 - 91/09/23
-
- # cbase utility makefile
-
- CC = cc# # C compiler
- CFLAGS = -O -Dhuge=# # C compiler options (-Dhuge= removes DOS huge keyword)
- LEX = lex# # lex compiler
- LFLAGS = -cn# # lex options
- YACC = yacc# # yacc compiler
- YFLAGS = -d# # yacc options
- BINDIR = /usr/bin# # directory to install compiled cbase utilities
- LIBS = -ly -ll# # libraries
- LINT = lint -b -p# # lint command and options
- MAN = cbddlp.man# # manual file
-
- FILES = makefile cbddlp.y cbddlpl.l cvtss.c
- SRCS = cbddlp.y cbddlpl.l cvtss.c
- CSRCS = cbddlp.c cbddlpl.c cvtss.c
- OBJS = $(CSRCS:.c=.o)
- MANS = cbddlp.y
-
- # suffix rules
- .SUFFIXES: .ddl .h .i
-
- .ddl.h:
- cbddlp $<
-
- .ddl.i:
- cbddlp $<
-
- # explicit rules
- cbddlp: $(OBJS)
- cc $(CFLAGS) $(OBJS) $(LIBS) -o cbddlp
-
- cbddlp.o: cbddlp.h
-
- cbddlpl.o: cbddlp.h y.tab.h
-
- install:
- @if test -s $(BINDIR)/cbddlp = 0; \
- then \
- echo $(BINDIR)/cbddlp exists\.; \
- echo -n "Do you wish to copy over it? "; \
- read response; \
- case $$response in \
- y | Y | yes | YES | Yes) ;; \
- *) exit 1 ;; \
- esac \
- fi; \
- cp cbddlp $(BINDIR)
- @echo cbddlp installed.
-
- lint:
- make $(CSRCS)
- $(LINT) $(CSRCS)
-
- man: $(MAN)
-
- $(MAN): $(MANS)
- cat $(MANS) | manx > $@