aboutsummaryrefslogtreecommitdiff
path: root/win32/x86
diff options
context:
space:
mode:
Diffstat (limited to 'win32/x86')
-rw-r--r--win32/x86/Makefile6
1 files changed, 6 insertions, 0 deletions
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 $<