Add CPPFLAGS & LDFLAGS for building version.exe & draw_tt build targets
Those are needed to be able to add security hardening buold flags by downstream package maintainers
This commit is contained in:
parent
d67d3323ad
commit
8de5e68e83
|
|
@ -244,7 +244,7 @@ iverilog-vpi: $(srcdir)/iverilog-vpi.sh Makefile
|
||||||
endif
|
endif
|
||||||
|
|
||||||
version.exe: $(srcdir)/version.c $(srcdir)/version_base.h version_tag.h
|
version.exe: $(srcdir)/version.c $(srcdir)/version_base.h version_tag.h
|
||||||
$(BUILDCC) $(CFLAGS) -o version.exe -I. -I$(srcdir) $(srcdir)/version.c
|
$(BUILDCC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o version.exe -I. -I$(srcdir) $(srcdir)/version.c
|
||||||
|
|
||||||
%.o: %.cc config.h
|
%.o: %.cc config.h
|
||||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) @DEPENDENCY_FLAG@ -c $< -o $*.o
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) @DEPENDENCY_FLAG@ -c $< -o $*.o
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ endif
|
||||||
mv $*.d dep/$*.d
|
mv $*.d dep/$*.d
|
||||||
|
|
||||||
tables.cc: $(srcdir)/draw_tt.c
|
tables.cc: $(srcdir)/draw_tt.c
|
||||||
$(BUILDCC) $(CFLAGS) -o draw_tt$(BUILDEXT) $(srcdir)/draw_tt.c
|
$(BUILDCC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o draw_tt$(BUILDEXT) $(srcdir)/draw_tt.c
|
||||||
./draw_tt$(BUILDEXT) > tables.cc
|
./draw_tt$(BUILDEXT) > tables.cc
|
||||||
rm draw_tt$(BUILDEXT)
|
rm draw_tt$(BUILDEXT)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue