7 DISK_IMAGE_DIR = Factor-$(VERSION)
8 DISK_IMAGE = Factor-$(VERSION).dmg
14 CFLAGS = -Wall -O3 -ffast-math -fomit-frame-pointer $(SITE_CFLAGS)
40 @echo "Run 'make' with one of the following parameters:"
51 @echo "On Unix, pass NO_UI=1 if you don't want to link with the"
52 @echo "X11 and OpenGL libraries."
54 @echo "On Mac OS X, pass X11=1 if you want to link with the"
55 @echo "X11 library instead of Cocoa. You will also need to bootstrap"
56 @echo "Factor with the -no-cocoa -x11 switches."
58 @echo "Also, you might want to set the SITE_CFLAGS environment"
59 @echo "variable to enable some CPU-specific optimizations; this"
60 @echo "can make a huge difference. Eg:"
62 @echo "export SITE_CFLAGS=\"-march=pentium4 -ffast-math\""
65 $(MAKE) $(BINARY) CONFIG=vm/Config.freebsd
68 ln -sf libfreetype.6.dylib \
69 Factor.app/Contents/Frameworks/libfreetype.dylib
71 macosx-ppc: macosx-freetype
72 $(MAKE) $(BINARY) CONFIG=vm/Config.macosx.ppc
74 macosx-x86: macosx-freetype
75 $(MAKE) $(BINARY) CONFIG=vm/Config.macosx
77 linux-x86 linux-amd64:
78 $(MAKE) $(BINARY) CONFIG=vm/Config.linux
82 $(MAKE) $(BINARY) CONFIG=vm/Config.linux.ppc
85 solaris solaris-x86 solaris-amd64:
86 $(MAKE) $(BINARY) CONFIG=vm/Config.solaris
90 $(MAKE) $(BINARY) CONFIG=vm/Config.windows
93 cp $(BINARY) $(BUNDLE)/Contents/MacOS/Factor
96 -id @executable_path/../Frameworks/libfreetype.6.dylib \
97 Factor.app/Contents/Frameworks/libfreetype.6.dylib
99 -change /usr/X11R6/lib/libfreetype.6.dylib \
100 @executable_path/../Frameworks/libfreetype.6.dylib \
101 Factor.app/Contents/MacOS/Factor
105 rm -rf $(DISK_IMAGE_DIR)
106 mkdir $(DISK_IMAGE_DIR)
107 mkdir -p $(DISK_IMAGE_DIR)/Factor/
108 cp -R $(BUNDLE) $(DISK_IMAGE_DIR)/Factor/$(BUNDLE)
110 cp factor.image license.txt README.txt TODO.FACTOR.txt
111 $(DISK_IMAGE_DIR)/Factor/
112 find doc library contrib examples fonts \( -name '*.factor' \
122 -exec ./cp_dir {} $(DISK_IMAGE_DIR)/Factor/{} \;
123 hdiutil create -srcfolder "$(DISK_IMAGE_DIR)" -fs HFS+ \
124 -volname "$(DISK_IMAGE_DIR)" "$(DISK_IMAGE)"
127 $(CC) $(LIBS) $(CFLAGS) -o $@$(PLAF_SUFFIX) $(OBJS)
133 rm -rf $(BUNDLE)/Contents/Resources/
134 rm -f $(BUNDLE)/Contents/MacOS/Factor
137 $(CC) -c $(CFLAGS) -o $@ $<
140 $(CC) -c $(CFLAGS) -o $@ $<
143 $(CC) -c $(CFLAGS) -o $@ $<