diff options
| author | Jim Lawson | 2017-05-11 15:07:30 -0700 |
|---|---|---|
| committer | GitHub | 2017-05-11 15:07:30 -0700 |
| commit | 8baa2ab806be1aa85a7a1da7b348726da1bd1d19 (patch) | |
| tree | 9c6251d52cb17830a9ce212c7630bf0d9fecf002 /src/main/resources/chisel3/Makefile | |
| parent | 45e235a5948a1cd15b8ccb5f437dc6f2ff80cb96 (diff) | |
Scope resources - move them down into chisel3 directory - fixes #549 (#610)
Diffstat (limited to 'src/main/resources/chisel3/Makefile')
| -rw-r--r-- | src/main/resources/chisel3/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/resources/chisel3/Makefile b/src/main/resources/chisel3/Makefile new file mode 100644 index 00000000..221179a3 --- /dev/null +++ b/src/main/resources/chisel3/Makefile @@ -0,0 +1,35 @@ +# Chisel parallel make template. + +HFILES = @HFILES@ +ONCEONLY = @ONCEONLY@ +UNOPTIMIZED = @UNOPTIMIZED@ +OPTIMIZED = @OPTIMIZED@ + +EXEC = @EXEC@ +OPTIM0 = @OPTIM0@ +OPTIM1 = @OPTIM1@ +OPTIM2 = @OPTIM2@ +CPPFLAGS = @CPPFLAGS@ +CXXFLAGS = @CXXFLAGS@ +LDFLAGS = @LDFLAGS@ +CXX = @CXX@ + +default: $(EXEC) + +clean: + $(RM) $(EXEC) $(ONCEONLY) $(UNOPTIMIZED) $(OPTIMIZED) + +$(ONCEONLY) $(UNOPTIMIZED) $(OPTIMIZED): $(HFILES) + +$(EXEC): $(ONCEONLY) $(UNOPTIMIZED) $(OPTIMIZED) Makefile + $(CXX) -o $@ $(filter-out Makefile,$^) + +$(ONCEONLY): %.o: %.cpp + $(CXX) -c -o $@ $(OPTIM0) $(CPPFLAGS) $(CXXFLAGS) $< + +$(UNOPTIMIZED): %.o: %.cpp + $(CXX) -c -o $@ $(OPTIM1) $(CPPFLAGS) $(CXXFLAGS) $< + +$(OPTIMIZED): %.o: %.cpp + $(CXX) -c -o $@ $(OPTIM2) $(CPPFLAGS) $(CXXFLAGS) $< +
\ No newline at end of file |
