Skip to content

Commit d5928e3

Browse files
committed
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 <[email protected]>
1 parent 628f4e9 commit d5928e3

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Makefile.nmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ ex = \
231231
ec_simple_example.exe \
232232
ec_piggyback_example.exe
233233

234+
{examples\ec}.c.obj:
235+
$(CC) $(CFLAGS) /c -Fo$@ $?
236+
234237
ex: lib $(ex)
235238

236239
$(ex): $(@B).obj

isa-l.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,4 @@ isal_gzip_header_init @110
115115
isal_adler32 @111
116116
isal_deflate_process_dict @112
117117
isal_deflate_reset_dict @113
118+
gf_inv @114

tools/gen_nmake.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ ifneq (,$(examples))
5555
@$(foreach ex, $(notdir $(examples)), printf " %s\n\t%s.exe" \\ $(ex) >> $@; )
5656
@echo '' >> $@
5757
@echo '' >> $@
58+
@$(foreach d, $(subst /,\\, $(sort $(patsubst %/,%,$(filter examples/%,$(dir $(examples)))))), \
59+
printf "{%s}.c.obj:\n\t\$$(CC) \$$(CFLAGS) /c -Fo\$$@ \$$?\n\n" $(d) >> $@; )
5860
@echo 'ex: lib $$(ex)' >> $@
5961
@echo '' >> $@
6062
@echo '$$(ex): $$(@B).obj' >> $@

0 commit comments

Comments
 (0)