build: Fix missing ms function export

Windows def file was missing an exported ec support function.
Also added path in nmake file to build extra examples.

Change-Id: I59ac1599dcb8cdb45077347c74b57aeca4751c35
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
Greg Tucker
2021-06-07 17:02:11 -07:00
parent 628f4e91ea
commit d5928e3760
3 changed files with 6 additions and 0 deletions

View File

@@ -231,6 +231,9 @@ ex = \
ec_simple_example.exe \
ec_piggyback_example.exe
{examples\ec}.c.obj:
$(CC) $(CFLAGS) /c -Fo$@ $?
ex: lib $(ex)
$(ex): $(@B).obj

View File

@@ -115,3 +115,4 @@ isal_gzip_header_init @110
isal_adler32 @111
isal_deflate_process_dict @112
isal_deflate_reset_dict @113
gf_inv @114

View File

@@ -55,6 +55,8 @@ ifneq (,$(examples))
@$(foreach ex, $(notdir $(examples)), printf " %s\n\t%s.exe" \\ $(ex) >> $@; )
@echo '' >> $@
@echo '' >> $@
@$(foreach d, $(subst /,\\, $(sort $(patsubst %/,%,$(filter examples/%,$(dir $(examples)))))), \
printf "{%s}.c.obj:\n\t\$$(CC) \$$(CFLAGS) /c -Fo\$$@ \$$?\n\n" $(d) >> $@; )
@echo 'ex: lib $$(ex)' >> $@
@echo '' >> $@
@echo '$$(ex): $$(@B).obj' >> $@