diff options
| author | laszloh <laszloh@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-08-04 04:15:38 +0000 |
|---|---|---|
| committer | laszloh <laszloh@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-08-04 04:15:38 +0000 |
| commit | 0c50722270a97e9fe3fd19283c85ee5f82603d0d (patch) | |
| tree | 38c8f3de11daf9d5e824ed00ded2c5d83d69ca14 | |
| parent | new safety feature displays a warning message and locks down RPC if it detect... (diff) | |
| download | discoin-0c50722270a97e9fe3fd19283c85ee5f82603d0d.tar.xz discoin-0c50722270a97e9fe3fd19283c85ee5f82603d0d.zip | |
correct typo for mac compile, update makefile to use llvm
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@123 1a98c847-1fd6-4fd8-948a-caf3550aa51b
| -rw-r--r-- | makefile.osx | 14 | ||||
| -rw-r--r-- | ui.cpp | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/makefile.osx b/makefile.osx index a6b810b27..167715b5c 100644 --- a/makefile.osx +++ b/makefile.osx @@ -5,6 +5,7 @@ # Mac OS X makefile for bitcoin
# Laszlo Hanyecz ([email protected])
+CXX=llvm-g++
DEPSDIR=/Users/macosuser/bitcoin/deps
INCLUDEPATHS= \
@@ -27,7 +28,7 @@ DEFS=$(shell $(DEPSDIR)/bin/wx-config --cxxflags) -D__WXMAC_OSX__ -DNOPCH -DMSG_ DEBUGFLAGS=-g -DwxDEBUG_LEVEL=0
# ppc doesn't work because we don't support big-endian
-CFLAGS=-mmacosx-version-min=10.5 -arch i386 -arch x86_64 -O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
+CFLAGS=-mmacosx-version-min=10.5 -arch i386 -arch x86_64 -O3 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h noui.h init.h
@@ -48,22 +49,23 @@ all: bitcoin obj/%.o: %.cpp $(HEADERS)
- g++ -c $(CFLAGS) -DGUI -o $@ $<
+ $(CXX) -c $(CFLAGS) -DGUI -o $@ $<
cryptopp/obj/%.o: cryptopp/%.cpp
- g++ -c $(CFLAGS) -O3 -DCRYPTOPP_DISABLE_ASM -o $@ $<
+ $(CXX) -c $(CFLAGS) -O3 -DCRYPTOPP_DISABLE_ASM -o $@ $<
bitcoin: $(OBJS) obj/ui.o obj/uibase.o
- g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS)
+ $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS)
obj/nogui/%.o: %.cpp $(HEADERS)
- g++ -c $(CFLAGS) -o $@ $<
+ $(CXX) -c $(CFLAGS) -o $@ $<
bitcoind: $(OBJS:obj/%=obj/nogui/%)
- g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
+ $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
clean:
+ -rm -f bitcoin bitcoind
-rm -f obj/*.o
-rm -f obj/nogui/*.o
@@ -388,7 +388,7 @@ void CMainFrame::OnIconize(wxIconizeEvent& event) fClosedToTray = true;
Show(!fClosedToTray);
ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
-#ifdef __WXGTK__
+#if defined(__WXGTK__) || defined(__WXMAC_OSX__)
}
#endif
}
|