mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
8937ed4066
The orignal port only ran on i386, since there were some 64bit conversion problems. The included tar file replaces the compete devel/cocktail tree currently in the ports tree. (lots of patches!) PR: ports/71940 Submitted by: Willem Jan Withagen <wjw@withagen.nl>
62 lines
1.2 KiB
Plaintext
62 lines
1.2 KiB
Plaintext
--- /usr/ports/devel/cocktail/work/cocktail-9309//./l2r/src/Makefile Tue Feb 15 14:23:48 1994
|
|
+++ ./l2r/src/Makefile Thu Aug 5 18:49:10 2004
|
|
@@ -1,35 +1,38 @@
|
|
-BIN = $(HOME)/bin
|
|
-OPT = -O
|
|
-CC = cc
|
|
-REUSE = ../../reuse/c
|
|
-CFLAGS = -w -I$(REUSE) $(OPT)
|
|
+
|
|
+.include "../../Makefile.inc"
|
|
+
|
|
+ROOTDIR = ../..
|
|
+CFLAGS += -I$(INCDIRC)
|
|
+CLIBS += $(REUSELIBC)
|
|
+
|
|
OBJS = l2r.o Parser.o Scanner.o Errors.o StringBuf.o
|
|
SOURCES = Scanner.h Scanner.c Parser.h Parser.c
|
|
|
|
# targets
|
|
|
|
l2r: $(OBJS)
|
|
- $(CC) -o l2r $(CFLAGS) $(OBJS) $(REUSE)/libreuse.a
|
|
+ $(CC) -o l2r $(CFLAGS) $(OBJS) $(REUSELIBC)
|
|
|
|
sources: $(SOURCES)
|
|
|
|
Scanner.h Scanner.c: lex.rex
|
|
- rex -cd lex.rex;
|
|
+ $(REX) -cd lex.rex;
|
|
|
|
Parser.h Parser.c: lex.lalr
|
|
- lalr -b -c -d lex.lalr;
|
|
+ $(LALR) -b -c -d lex.lalr;
|
|
|
|
install: l2r
|
|
- install -c -s -m 755 l2r $(BIN)
|
|
+ install -c -s -m 755 l2r $(DESTBIN)
|
|
|
|
lint: l2r.c Parser.c Scanner.c Errors.c StringBuf.c
|
|
- lint -I$(REUSE) -b -u *.c
|
|
+ lint -I$(INCDIRC) -b -u *.c
|
|
|
|
clean:
|
|
- rm -f core l2r *.o
|
|
+ -rm -f $(STDCLEAN)
|
|
+ -rm -f l2r *.o Scanner.c Scanner.h Parser.h Parser.c
|
|
|
|
CLEAN: clean
|
|
- rm -f $(SOURCES)
|
|
+ -rm -f $(SOURCES)
|
|
|
|
# dependencies
|
|
|
|
@@ -44,7 +47,4 @@
|
|
man:
|
|
nroff -man l2r.1
|
|
|
|
-.SUFFIXES: .c .o
|
|
|
|
-.c.o:
|
|
- $(CC) $(CFLAGS) -c $*.c
|