Created
April 13, 2024 23:27
-
-
Save Googulator/9eee5c0ccd10fd819bf937b4f650b52f to your computer and use it in GitHub Desktop.
byacc Makefile.old updated for modern byacc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEST = . | |
HDRS = defs.h | |
CFLAGS = -O -DNDEBUG | |
LDFLAGS = | |
LIBS = | |
LINKER = cc | |
MAKEFILE = Makefile | |
OBJS = closure.o \ | |
error.o graph.o \ | |
lalr.o \ | |
lr0.o \ | |
main.o \ | |
mkpar.o mstring.o \ | |
output.o \ | |
reader.o \ | |
symtab.o \ | |
verbose.o \ | |
warshall.o yaccpar.o | |
PRINT = pr -f -l88 | |
PROGRAM = yacc | |
SRCS = closure.c \ | |
error.c graph.c \ | |
lalr.c \ | |
lr0.c \ | |
main.c \ | |
mkpar.c mstring.c \ | |
output.c \ | |
reader.c \ | |
symtab.c \ | |
verbose.c \ | |
warshall.c yaccpar.c | |
all: $(PROGRAM) | |
$(PROGRAM): $(OBJS) $(LIBS) | |
@echo -n "Loading $(PROGRAM) ... " | |
@$(LINKER) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS) | |
@echo "done" | |
clean:; @rm -f $(OBJS) | |
clobber:; @rm -f $(OBJS) $(PROGRAM) | |
depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST) | |
index:; @ctags -wx $(HDRS) $(SRCS) | |
install: $(PROGRAM) | |
@echo Installing $(PROGRAM) in $(DEST) | |
@install -s $(PROGRAM) $(DEST) | |
listing:; @$(PRINT) Makefile $(HDRS) $(SRCS) | lpr | |
lint:; @lint $(SRCS) | |
program: $(PROGRAM) | |
tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) | |
### | |
closure.o: defs.h | |
error.o: defs.h | |
lalr.o: defs.h | |
lr0.o: defs.h | |
main.o: defs.h | |
mkpar.o: defs.h | |
output.o: defs.h | |
reader.o: defs.h | |
symtab.o: defs.h | |
verbose.o: defs.h | |
warshall.o: defs.h | |
btyaccpar.o: defs.h | |
yaccpar.o: defs.h | |
graph.o: defs.h | |
mstring.o: defs.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment