Skip to content

Commit ab6924c

Browse files
committed
State reason for dummy header in Makefile
1 parent da63416 commit ab6924c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ NO_OBJECTS =
2929

3030
DEPENDS = $(SOURCES:.c=.d) $(WESTMERE_SOURCES:.c=.d) $(HASWELL_SOURCES:.c=.d)
3131

32+
# The export header automatically defines visibility macros. These macros are
33+
# required for standalone builds on Windows. I.e., exported functions must be
34+
# declared with __declspec(dllexport) for dynamic link libraries (.dll) and
35+
# __declspec(dllimport) for statically linked libraries (.lib). Define dummy
36+
# macros for compatibility.
3237
EXPORT_HEADER = include/zone/export.h
3338

3439
.PHONY: all clean
@@ -55,7 +60,7 @@ libzone.a: $(OBJECTS) $($(WESTMERE)_OBJECTS) $($(HASWELL)_OBJECTS)
5560

5661
$(EXPORT_HEADER):
5762
@mkdir -p include/zone
58-
@echo "#define ZONE_EXPORT" > include/zone/export.h
63+
@echo "#define ZONE_EXPORT" > $(EXPORT_HEADER)
5964

6065
$(WESTMERE_OBJECTS): $(EXPORT_HEADER) .depend
6166
@mkdir -p src/westmere

0 commit comments

Comments
 (0)