diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-08-15 22:46:58 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-08-15 22:46:58 +0000 |
commit | 08fee75201e82f2e34fcc1549ee8edd152f5d040 (patch) | |
tree | 4c3ae65e642076e20f0f8fc5a3849c1e88fc0da1 /makefile.unix | |
parent | 85de7d7c0cbb1e9aa311606644b697674c84f6f9 (diff) |
makefile.unix to build with option to enable tcatm's 4-way SSE2 SHA-256 with -4way switch on Linuxv0.3.10
-- version 0.3.10 release
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@134 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'makefile.unix')
-rw-r--r-- | makefile.unix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/makefile.unix b/makefile.unix index 7418d6dcf4..1a7b8fcc65 100644 --- a/makefile.unix +++ b/makefile.unix @@ -25,7 +25,7 @@ LIBS= \ -Wl,-Bdynamic \
-l gthread-2.0
-DEFS=-D__WXGTK__ -DNOPCH
+DEFS=-D__WXGTK__ -DNOPCH -DFOURWAYSSE2
DEBUGFLAGS=-g -D__WXDEBUG__
CFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
@@ -53,14 +53,17 @@ obj/%.o: %.cpp $(HEADERS) cryptopp/obj/%.o: cryptopp/%.cpp
g++ -c $(CFLAGS) -O3 -o $@ $<
-bitcoin: $(OBJS) obj/ui.o obj/uibase.o
+obj/sha256.o: sha256.cpp
+ g++ -c $(CFLAGS) -msse2 -O3 -o $@ $<
+
+bitcoin: $(OBJS) obj/ui.o obj/uibase.o obj/sha256.o
g++ $(CFLAGS) -o $@ $^ $(WXLIBS) $(LIBS)
obj/nogui/%.o: %.cpp $(HEADERS)
g++ -c $(CFLAGS) -o $@ $<
-bitcoind: $(OBJS:obj/%=obj/nogui/%)
+bitcoind: $(OBJS:obj/%=obj/nogui/%) obj/sha256.o
g++ $(CFLAGS) -o $@ $^ $(LIBS)
|