diff --git a/.gitattributes b/.gitattributes index ee91af0..43d16e6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,3 +14,6 @@ /resource/doxygen-theme/* linguist-generated /src/icon/*.c linguist-generated /src/font/*.c linguist-generated +/BorMakefile linguist-generated +/WatMakefile linguist-generated +/NTMakefile linguist-generated diff --git a/CMakeLists.txt b/CMakeLists.txt index 76e579d..7f5ace3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ option(USE_FDLIBM "Use fdlibm" OFF) file( GLOB SOURCES - src/*.c src/cursor/*.c src/icon/*.c src/text/*.c src/widget/*.c external/*.c + src/*.c src/cursor/*.c src/icon/*.c src/text.c src/widget/*.c src/math/*.c src/font/*.c src/color_picker/*.c external/*.c ) if(NOT OPENGL) @@ -153,6 +153,12 @@ else() endif() endif() +set_source_files_properties( + src/math/mmx.c + PROPERTIES + COMPILE_FLAGS -mmmx +) + target_include_directories( Mw PRIVATE diff --git a/GNUmakefile b/GNUmakefile index 08051ca..1394a24 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -76,6 +76,9 @@ examples/gldemos/%$(EXEC): examples/gldemos/%.o src/$(LIB)Mw$(SO) examples/%$(EXEC): examples/%.o src/$(LIB)Mw$(SO) $(CC) $(E_LDFLAGS) -o $@ $< $(E_LIBS) +src/math/mmx.o: src/math/mmx.c + $(CC) $(L_CFLAGS) -mmmx -c -o $@ $< + src/%.o: src/%.c $(CC) $(L_CFLAGS) -c -o $@ $< diff --git a/mk/platform.mk b/mk/platform.mk index 59f18ac..3bb4900 100644 --- a/mk/platform.mk +++ b/mk/platform.mk @@ -27,8 +27,6 @@ FOUND_PLATFORM = 1 endif ifeq ($(TARGET),Windows) -CFLAGS += -mmmx - WINDOWS = 1 OPENGL = 1 VULKAN = 1