From 24225349831278c23c6dfc4515e071f4b27b2c41 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 1 Apr 2017 14:53:59 +0900 Subject: add sse2/ssse3 simd optimization --- win32/x86/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'win32/x86/Makefile') diff --git a/win32/x86/Makefile b/win32/x86/Makefile index b26f3e1..6146d28 100644 --- a/win32/x86/Makefile +++ b/win32/x86/Makefile @@ -9,6 +9,7 @@ vpath %.rc .. include ../fmplayer.mak OBJS=$(addsuffix .o,$(OBJBASE) $(RESBASE)) +OBJS+=$(addsuffix .sse.o,$(SSEOBJBASE)) ARCH=i686 PREFIX=$(ARCH)-w64-mingw32- CC=$(PREFIX)gcc @@ -17,6 +18,7 @@ STRIP=$(PREFIX)strip CFLAGS=-std=c99 -O2 -Wall -Wextra -Werror -pedantic -I../.. \ $(addprefix -D,$(DEFINES)) \ -march=i586 -Wno-unused-parameter -Wno-missing-field-initializers +SSECFLAGS=-mssse3 -O3 LIBS=-s -mwindows -municode \ $(addprefix -l,$(LIBBASE)) @@ -29,6 +31,10 @@ $(TARGET): $(OBJS) @echo " CC $@" @$(CC) $(CFLAGS) -c $< -o $@ +%.sse.o: %.c + @echo " CC $@" + @$(CC) $(CFLAGS) $(SSECFLAGS) -c $< -o $@ + %.o: %.rc $(ICON) @echo " WINDRES $@" @$(WINDRES) -o $@ -i $< -- cgit v1.2.3