From d39ce17deaa0b8f7b75b4319fbfb087dfaa30b9e Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 28 Nov 2015 17:33:01 -0500 Subject: [PATCH] Makefiles: Turn off make built-in suffixes. --- Makefile.in | 2 ++ src/Makefile.in | 2 ++ src/Makefile_obj.in | 2 ++ test_regress/Makefile | 2 ++ test_regress/Makefile_obj | 2 ++ 5 files changed, 10 insertions(+) diff --git a/Makefile.in b/Makefile.in index 70904fd7b..5b66ac032 100644 --- a/Makefile.in +++ b/Makefile.in @@ -100,6 +100,8 @@ PACKAGE_VERSION = @PACKAGE_VERSION@ #### End of system configuration section. #### ###################################################################### +.SUFFIXES: + SHELL = /bin/sh SUBDIRS = src test_verilated test_c test_sc test_regress diff --git a/src/Makefile.in b/src/Makefile.in index 9108fb1f7..4f7ed8da0 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -46,6 +46,8 @@ obj_opt: obj_dbg: mkdir $@ +.SUFFIXES: + .PHONY: ../verilator_bin ../verilator_bin_dbg ../verilator_coverage_bin_dbg opt: ../verilator_bin diff --git a/src/Makefile_obj.in b/src/Makefile_obj.in index c26921158..1d824e333 100644 --- a/src/Makefile_obj.in +++ b/src/Makefile_obj.in @@ -327,6 +327,8 @@ V3PreLex_pregen.yy.cpp: V3PreLex.l $(HEADERS) V3PreLex.yy.cpp: V3PreLex_pregen.yy.cpp $(FLEXFIX) $(PERL) $(FLEXFIX) V3PreLex <$< >$@ +.SUFFIXES: + ###################################################################### ###################################################################### diff --git a/test_regress/Makefile b/test_regress/Makefile index a339fbce5..cc1b507c2 100644 --- a/test_regress/Makefile +++ b/test_regress/Makefile @@ -40,6 +40,8 @@ ifeq ($(CFG_WITH_LONGTESTS),yes) DRIVER_FLAGS += -j 0 endif +.SUFFIXES: + ###################################################################### .PHONY: test diff --git a/test_regress/Makefile_obj b/test_regress/Makefile_obj index 5b13e9cad..7630bf143 100644 --- a/test_regress/Makefile_obj +++ b/test_regress/Makefile_obj @@ -42,6 +42,8 @@ ifeq ($(VM_SP_OR_SC),1) LIBS += $(SC_LIBS) endif +.SUFFIXES: + #Default compile, pick up OBJCACHE %.o: %.cpp $(OBJCACHE) $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<