aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-04-16 10:36:13 +0200
committerAnton Khirnov <anton@khirnov.net>2024-04-16 10:36:13 +0200
commitb6b93ceec5669310ffbcfa4cbd88c0c2f9c68ca2 (patch)
tree8782ae2fddd3508b6a1f7617275618f3993d0929 /Makefile
parente30cfde7614be7062249954eab6c3f56eeabbb51 (diff)
x86inc.asm: update to current master 04f14f43
Requires changing residual calc functions to AVX2. Also, supply the private prefix via nasm -D option rather than modifying x86inc.asm.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1991773..5827ee4 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,8 @@ CFLAGS += -D_DEFAULT_SOURCE=1 # for random_r
CFLAGS += -I. -I$(SOURCE_DIR)
CFLAGS += $(CFLAGS_DEP)
+NASMFLAGS += -Dprivate_prefix=mg2di
+
LDFLAGS_COMMON = $(LDFLAGS_DEP)
LDFLAGS_COMMON += -lm -llapacke -lblas -lthreadpool -lndarray
LDFLAGS_TARGET = -shared -Wl,--version-script=$(SOURCE_DIR)/libmg2d.v
@@ -61,8 +63,8 @@ $(foreach testprog, $(TESTPROGS), $(eval $(testprog): TESTOBJ = $(testprog).c.o)
$(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $<
%.asm.o: %.asm
- nasm -i $(SOURCE_DIR)/ -f elf64 -MD $(@:.o=.d) -MT $@ $<
- nasm -i $(SOURCE_DIR)/ -f elf64 -o $@ $<
+ nasm $(NASMFLAGS) -i $(SOURCE_DIR)/ -f elf64 -MD $(@:.o=.d) -MT $@ $<
+ nasm $(NASMFLAGS) -i $(SOURCE_DIR)/ -f elf64 -o $@ $<
clean:
-rm -f *.o *.d *.pyc $(TARGET)