diff options
Diffstat (limited to 'devel/cocktail/files/patch-Makefile.inc')
-rw-r--r-- | devel/cocktail/files/patch-Makefile.inc | 59 |
1 files changed, 47 insertions, 12 deletions
diff --git a/devel/cocktail/files/patch-Makefile.inc b/devel/cocktail/files/patch-Makefile.inc index 8a2a1287726e..b044098883b3 100644 --- a/devel/cocktail/files/patch-Makefile.inc +++ b/devel/cocktail/files/patch-Makefile.inc @@ -1,18 +1,41 @@ ---- ../../work/cocktail-9309//./Makefile.inc Sun Apr 4 18:01:21 2004 -+++ ./Makefile.inc Wed Mar 31 23:30:53 2004 -@@ -0,0 +1,60 @@ +--- /usr/ports/devel/cocktail/work/cocktail-9309//./Makefile.inc Sat Sep 11 00:58:46 2004 ++++ ./Makefile.inc Fri Sep 10 15:46:35 2004 +@@ -0,0 +1,96 @@ +# Choose a suitable C compiler +# usually cc or gcc will do +# on HP700 use: CC = c89 -D_HPUX_SOURCE +CC ?= gcc + -+OPT = -g -O -w # (optimizer) flags for the C compiler -+CFLAGS += $(OPT) -D$(UNIX) -D$(TARGET) -+ # C libraries ++OPT = -g # (optimizer) flags for the C compiler ++WARNINGS= -W -Wall -ansi -Wcast-align \ ++ -Wcast-qual -Wchar-subscripts -Winline \ ++ -Wnested-externs -Wpointer-arith \ ++ -Wmissing-prototypes \ ++ -Wredundant-decls \ ++ -Wno-shadow \ ++ -Wno-parentheses \ ++ -Wno-unused ++TWARNINGS= ++ ++#WARNINGS= -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align \ ++# -Waggregate-return -Wstrict-prototypes \ ++# -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline ++# -Wbad-function-cast ++# Gives all those: cast does not match function type ++# -Wconversion , not very handy, since it allerts almost all conversions ++# als the correct ones ++# -Wwrite-strings , a nuicance ++# -Wstrict-prototypes \ ++ ++CFLAGS += $(OPT) $(WARNINGS) -D$(UNIX) -D$(TARGET) $(XFLAGS) ++# ++# To compile the tests, since they are tool generated and otherwise generate ++# losts warnings ++TCFLAGS += $(OPT) $(TWARNINGS) -D$(UNIX) -D$(TARGET) $(XFLAGS) + +# Choose a suitable Modula compiler +# MC or M2C -+MC = MC ++MC = m2c + +# BSD needs this +MAKE = make @@ -30,6 +53,11 @@ +FRONTINC = $(ROOTDIR)/front/m2c +FRONTLIB = $(FRONTINC)/libfront.a + ++TMPDIR = ${ROOTDIR}/tmp ++TMPBIN = $(TMPDIR)/bin ++TMPLIB = $(TMPDIR)/libexec/cocktail ++TMPINC = $(TMPDIR)/include/cocktail ++ +DEST = $(PREFIX) +DESTBIN = $(DEST)/bin # to install shell scripts and binaries +DESTLIB = $(DEST)/libexec/cocktail # to install binaries and data files @@ -38,16 +66,24 @@ +DESTMANDIR2 = $(DEST)/man/man2 # Directory for man pages + +# During package build -+REX = $(ROOTDIR)/rex/m2c/rex -l$(ROOTDIR)/rex/lib -+LALR = $(ROOTDIR)/lalr/m2c/lalr -+MTC = $(ROOTDIR)/mtc/m2c/mtc ++REX = $(TMPBIN)/rex ++BNF = $(TMPBIN)bnf ++LALR = $(TMPBIN)/lalr ++MTC = $(TMPBIN)/mtc ++LPP = $(TMPBIN)/lpp ++RPP = $(TMPBIN)/rpp ++CG = $(TMPBIN)/cg ++ELL = $(TMPBIN)/ell ++PUMA = $(TMPBIN)/puma +SED = sed + ++STDCLEAN = *.bak *.orig *.rej *.core *.o ++ +# The following targets are legal: +# PCS10 +# PCS20 +# SUN (this is valid for all others) -+TARGET = FREEBSB ++TARGET = FREEBSD +UNIX = UNIX + +# Choose the source language: @@ -61,4 +97,3 @@ + +.md.h: + mtc2 $(M2FLAGS) $*.md; -+ |