diff options
author | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2017-11-27 03:36:16 -0800 |
---|---|---|
committer | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2017-11-27 03:36:16 -0800 |
commit | 01509f9c1464de9f9e021282d78eebd162b3e0ef (patch) | |
tree | d187a25110d380f2d083fe7a2cac937cc81d18d5 /src/makefile | |
parent | 518170ed6f139cea761efef579695c53a968b0e1 (diff) | |
download | vhdl2vl-01509f9c1464de9f9e021282d78eebd162b3e0ef.tar.gz vhdl2vl-01509f9c1464de9f9e021282d78eebd162b3e0ef.zip |
Updates to makefile, mostly comments
make c99 the default
tested on Debian Jessie and Debian Stretch
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/makefile b/src/makefile index fe8806b..131b559 100644 --- a/src/makefile +++ b/src/makefile @@ -1,17 +1,19 @@ -# Leave off -Wundef -Wredundant-decls -Wtraditional-conversion until flex -# and bison get cleaned up. Our code is nearly fine now. -# Use -W for now instead of the more modern -Wextra, since lots of people -# still use older compilers. -# Use the following for development -# WARNS = -Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wpointer-arith -Wcast-align -Wcast-qual -Wsign-compare -Wwrite-strings -Wstrict-overflow=5 -Wformat=2 -pedantic - # simplified version for general use, so as not to look so intimidating WARNS = -Wall -W +# Even this level flags a known problem with flex-2.6.1 output, regarding +# signed/unsigned comparison in YY_INPUT. + +# Developers or anal compulsives: uncomment the following WARNS definition. +# Leave off -Wtraditional-conversion until flex and bison get cleaned up. +# Use -W for now instead of the more modern -Wextra, since lots of people +# still use older compilers. +# WARNS = -Wall -W -Wshadow -Wundef -Wredundant-decls -Wpointer-arith -Wcast-qual -Wpointer-arith -Wcast-align -Wcast-qual -Wsign-compare -Wwrite-strings -Wformat=2 -pedantic +# Code generated by yacc-3.0.2 fails -Wstrict-overflow=5 # any of the following three should work: -STANDARD = -#STANDARD = --std=c89 -D_POSIX_C_SOURCE -D_BSD_SOURCE -#STANDARD = --std=c99 -D_POSIX_C_SOURCE -D_BSD_SOURCE +# STANDARD = +# STANDARD = --std=c89 -D_DEFAULT_SOURCE +STANDARD = --std=c99 -D_DEFAULT_SOURCE vhd2vl : lex.yy.c vhd2vl.tab.c $(CC) ${STANDARD} ${WARNS} -O2 -g -o vhd2vl lex.yy.c vhd2vl.tab.c -lfl |