From 81395519083890afe6375208c8261df1ac11f52a Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 10 Dec 2009 13:07:28 -0800 Subject: [PATCH] Add CFLAGS to vvp/Makefile.in We do have one C program in the vvp directory so add CFLAGS to the Makefile. This patch also modifies the two local programs tables and version to use -Wall. (cherry picked from commit 1a25b3deda4b93943aabe3feee860af18b131b2a) --- Makefile.in | 2 +- vvp/Makefile.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 32179d3c9..084d302b8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -192,7 +192,7 @@ iverilog-vpi: $(srcdir)/iverilog-vpi.sh Makefile endif version.exe: $(srcdir)/version.c $(srcdir)/version_base.h version_tag.h - $(HOSTCC) -o version.exe -I. -I$(srcdir) $(srcdir)/version.c + $(HOSTCC) -Wall -o version.exe -I. -I$(srcdir) $(srcdir)/version.c dep: mkdir dep diff --git a/vvp/Makefile.in b/vvp/Makefile.in index 8a45a9575..8fbd921cc 100644 --- a/vvp/Makefile.in +++ b/vvp/Makefile.in @@ -46,6 +46,7 @@ MAN = @MAN@ PS2PDF = @PS2PDF@ CPPFLAGS = -I. -I.. -I $(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ +CFLAGS = -Wall @CFLAGS@ CXXFLAGS = -Wall @CXXFLAGS@ LDFLAGS = @rdynamic@ @LDFLAGS@ LIBS = @LIBS@ @EXTRALIBS@ @@ -112,7 +113,7 @@ dep: mv $*.d dep/$*.d tables.cc: $(srcdir)/draw_tt.c - $(HOSTCC) -o draw_tt $(srcdir)/draw_tt.c + $(HOSTCC) -Wall -o draw_tt $(srcdir)/draw_tt.c ./draw_tt > tables.cc rm draw_tt@EXEEXT@