Permalink
Browse files

Update and localize HOST compile information.

  • Loading branch information...
1 parent 0dc9ed2 commit 5d150c315131f98fd6fe26df90dc74d113e93ec3 @caryr caryr committed Dec 16, 2011
Showing with 11 additions and 5 deletions.
  1. +6 −3 Makefile.in
  2. +5 −2 vvp/Makefile.in
View
@@ -67,8 +67,11 @@ mandir = @mandir@
dllib=@DLLIB@
-CC = @CC@
+# For a cross compile these defines will need to be set accordingly.
HOSTCC = @CC@
+HOSTCFLAGS = @WARNING_FLAGS@ @CFLAGS@
+
+CC = @CC@
CXX = @CXX@
DLLTOOL = @DLLTOOL@
INSTALL = @INSTALL@
@@ -121,7 +124,7 @@ all: dep config.h _pli_types.h version_tag.h ivl@EXEEXT@ version.exe iverilog-vp
ifeq (@MINGW32@,yes)
all: dosify.exe
dosify.exe: $(srcdir)/dosify.c
- $(HOSTCC) -o dosify.exe $(srcdir)/dosify.c
+ $(HOSTCC) $(HOSTCFLAGS) -o dosify.exe $(srcdir)/dosify.c
endif
# This rule rules the compiler in the trivial hello.vl program to make
@@ -228,7 +231,7 @@ iverilog-vpi: $(srcdir)/iverilog-vpi.sh Makefile
endif
version.exe: $(srcdir)/version.c $(srcdir)/version_base.h version_tag.h
- $(HOSTCC) @WARNING_FLAGS@ -o version.exe -I. -I$(srcdir) $(srcdir)/version.c
+ $(HOSTCC) $(HOSTCFLAGS) -o version.exe -I. -I$(srcdir) $(srcdir)/version.c
%.o: %.cc config.h
$(CXX) $(CPPFLAGS) $(CXXFLAGS) @DEPENDENCY_FLAG@ -c $< -o $*.o
View
@@ -32,8 +32,11 @@ libdir = @libdir@
mandir = @mandir@
includedir = @includedir@
-CC = @CC@
+# For a cross compile these defines will need to be set accordingly.
HOSTCC = @CC@
+HOSTCFLAGS = @WARNING_FLAGS@ @CFLAGS@
+
+CC = @CC@
CXX = @CXX@
DLLTOOL = @DLLTOOL@
AR = @AR@
@@ -144,7 +147,7 @@ endif
mv $*.d dep/$*.d
tables.cc: $(srcdir)/draw_tt.c
- $(HOSTCC) @WARNING_FLAGS@ -o draw_tt.exe $(srcdir)/draw_tt.c
+ $(HOSTCC) $(HOSTCFLAGS) -o draw_tt.exe $(srcdir)/draw_tt.c
./draw_tt.exe > tables.cc
rm draw_tt.exe

0 comments on commit 5d150c3

Please sign in to comment.