Hacks to allow OS X build for 32-bit.
[lwext4.git] / Makefile
index 5cd1efb5d16a52cbf8dc97cf78c743d3fbe1fd03..0c468398528f900ad669ae0d4f14cb4ef2a429c7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,56 +33,53 @@ endef
 generic:
        $(call generate_common,$@)
 
-osx:   
+osx:
        $(call generate_common,$@)
 
+osx32:
+       $(call generate_common,$@,-DCMAKE_OSX_ARCHITECTURES=i386)
+
 cortex-m0:
        $(call generate_common,$@)
-       
+
 cortex-m0+:
        $(call generate_common,$@)
-       
+
 cortex-m3:
        $(call generate_common,$@)
-       
+
 cortex-m4:
        $(call generate_common,$@)
-       
+
 cortex-m4f:
        $(call generate_common,$@)
-       
+
 cortex-m7:
        $(call generate_common,$@)
 
 arm-sim:
        $(call generate_common,$@)
 
-avrxmega7: 
+avrxmega7:
        $(call generate_common,$@)
 
 msp430:
        $(call generate_common,$@)
-       
+
 mingw:
        $(call generate_common,$@,-DWIN32=1)
-       
+
 lib_only:
        rm -R -f build_lib_only
        mkdir build_lib_only
        cd build_lib_only && cmake $(COMMON_DEFINITIONS) -DLIB_ONLY=TRUE ..
 
-all: 
+all:
        generic
 
 clean:
        rm -R -f build_*
        rm -R -f ext_images
 
-       
-include fs_test.mk
-
-
-       
 
-       
-       
+include fs_test.mk