@@ -31,8 +31,8 @@ Makefile.nmake tst.nmake: FORCE
31
31
@echo ' AS = nasm' >> $@
32
32
@echo ' ' >> $@
33
33
@echo ' lib: bin static dll' >> $@
34
- @echo ' static: bin isa-l_static.lib' >> $@
35
- @echo ' dll: bin isa-l.dll' >> $@
34
+ @echo ' static: bin isa-l_static.lib isa-l.h ' >> $@
35
+ @echo ' dll: bin isa-l.dll isa-l.h ' >> $@
36
36
@echo ' ' >> $@
37
37
@echo ' bin: ; -mkdir $$@' >> $@
38
38
@echo ' ' >> $@
97
97
@$(foreach p, $(notdir $(bin_PROGRAMS)), \
98
98
printf "%s.exe: %s\n\tlink /out:\$$@ \$$(LINKFLAGS) isa-l.lib \$$?\n" $(p) $(subst /,\\,$(programs_$(p)_SOURCES:.c=.obj)) >> $@; )
99
99
@echo '' >> $@
100
+ @echo 'isa-l.h:' >> $@
101
+ @echo ' @echo /**>> $$@' >> $@
102
+ @echo ' @echo * @file isa-l.h>> $$@' >> $@
103
+ @echo ' @echo * @brief Include for ISA-L library>> $$@' >> $@
104
+ @echo ' @echo */>> $$@' >> $@
105
+ @echo ' @echo.>> $$@' >> $@
106
+ @echo ' @echo # ifndef _ISAL_H_>> $$@' >> $@
107
+ @echo ' @echo # define _ISAL_H_>> $$@' >> $@
108
+ @echo ' @echo.>> $$@' >> $@
109
+ @echo '# define.ISAL_MAJOR_VERSION.${version}' | ${AWK} -F . '{print "\t@echo", $$1, $$2, $$3, ">> $$@"}' >> $@
110
+ @echo '# define.ISAL_MINOR_VERSION.${version}' | ${AWK} -F . '{print "\t@echo", $$1, $$2, $$4, ">> $$@"}' >> $@
111
+ @echo '# define.ISAL_PATCH_VERSION.${version}' | ${AWK} -F . '{print "\t@echo", $$1, $$2, $$5, ">> $$@"}' >> $@
112
+ @echo ' @echo # define ISAL_MAKE_VERSION(maj, min, patch) ((maj) * 0x10000 + (min) * 0x100 + (patch))>> $$@' >> $@
113
+ @echo ' @echo # define ISAL_VERSION ISAL_MAKE_VERSION(ISAL_MAJOR_VERSION, ISAL_MINOR_VERSION, ISAL_PATCH_VERSION)>> $$@' >> $@
114
+ @echo ' @echo.>> $$@' >> $@
115
+ @for unit in $(sort $(extern_hdrs)); do echo " @echo # include ^<isa-l/$$unit^>>> \$$@" | sed -e 's;include/;;' >> $@; done
116
+ @echo ' @echo # endif //_ISAL_H_>> $$@' >> $@
117
+ @echo '' >> $@
100
118
@echo 'clean:' >> $@
101
119
@echo ' -if exist *.obj del *.obj' >> $@
102
120
@echo ' -if exist bin\*.obj del bin\*.obj' >> $@
0 commit comments