tools: update hledgermac rule

This commit is contained in:
Simon Michael 2009-12-12 15:58:52 +00:00
parent fb8fa65f03
commit d6ef9f3436
2 changed files with 6 additions and 1 deletions

View File

@ -66,9 +66,11 @@ hledgeropt: setversion
ghc --make hledger.hs -o hledgeropt $(BUILDFLAGS) -O2 # -fvia-C # -fexcess-precision -optc-O3 -optc-ffast-math
# build a deployable binary for mac, one which uses only standard osx libs
# use some trickery to link without gmp lib
hledgermac: setversion
ghc -c --make hledger.hs -o $(BINARYFILENAME) $(BUILDFLAGS) -O2 -optl-L/usr/lib
sudo port deactivate gmp
ghc --make hledger.hs -o $(BINARYFILENAME) $(BUILDFLAGS) -O2 -optl-L/usr/lib #-optl-F/Library/Frameworks/GMP
-PATH=tools:$(PATH) ghc --make hledger.hs -o $(BINARYFILENAME) $(BUILDFLAGS) -O2 -optl-L/usr/lib
sudo port activate gmp
@echo Please check the build looks portable:
otool -L $(BINARYFILENAME)

3
tools/trhsx Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
# fake trhsx, to help "make hledgermac"
cp $2 $3