From 4014afe2e6165ffd44323b1b46f3a3c3e091063a Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Sat, 6 Jul 2013 12:42:22 -1000 Subject: [PATCH] Litecoin: Build and Makefile changes --- .gitignore | 14 +++---- bitcoin-qt.pro | 6 +-- contrib/gitian-descriptors/deps-win32.yml | 4 +- contrib/gitian-descriptors/gitian-win32.yml | 25 ++++++------ contrib/gitian-descriptors/gitian.yml | 14 +++---- contrib/macdeploy/fancy.plist | 2 +- share/qt/Info.plist | 4 +- share/setup.nsi | 44 ++++++++++----------- src/makefile.linux-mingw | 10 ++--- src/makefile.mingw | 12 +++--- src/makefile.osx | 12 +++--- src/makefile.unix | 12 +++--- src/qt/res/bitcoin-qt.rc | 10 ++--- 13 files changed, 85 insertions(+), 84 deletions(-) diff --git a/.gitignore b/.gitignore index bf16a5189..a0fb2936f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ src/*.exe -src/bitcoin -src/bitcoind -src/test_bitcoin +src/litecoin +src/litecoind +src/test_litecoin .*.swp *.*~* *.bak @@ -9,17 +9,17 @@ src/test_bitcoin *.orig *.o *.patch -.bitcoin +.litecoin # Compilation and Qt preprocessor part *.qm Makefile -bitcoin-qt -Bitcoin-Qt.app +litecoin-qt +Litecoin-Qt.app # Unit-tests Makefile.test -bitcoin-qt_test +litecoin-qt_test # Resources cpp qrc_*.cpp diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro index 6068f399e..f33f43529 100644 --- a/bitcoin-qt.pro +++ b/bitcoin-qt.pro @@ -1,6 +1,6 @@ TEMPLATE = app -TARGET = bitcoin-qt -macx:TARGET = "Bitcoin-Qt" +TARGET = litecoin-qt +macx:TARGET = "Litecoin-Qt" VERSION = 0.8.3 INCLUDEPATH += src src/json src/qt QT += network @@ -309,7 +309,7 @@ SOURCES += src/qt/test/test_main.cpp \ HEADERS += src/qt/test/uritests.h DEPENDPATH += src/qt/test QT += testlib -TARGET = bitcoin-qt_test +TARGET = litecoin-qt_test DEFINES += BITCOIN_QT_TEST macx: CONFIG -= app_bundle } diff --git a/contrib/gitian-descriptors/deps-win32.yml b/contrib/gitian-descriptors/deps-win32.yml index 90f4c6c4b..92892b4d7 100644 --- a/contrib/gitian-descriptors/deps-win32.yml +++ b/contrib/gitian-descriptors/deps-win32.yml @@ -1,5 +1,5 @@ --- -name: "bitcoin-deps" +name: "litecoin-deps" suites: - "lucid" architectures: @@ -63,7 +63,7 @@ script: | make $MAKEOPTS cd .. # - zip -r $OUTDIR/bitcoin-deps-0.0.5.zip \ + zip -r $OUTDIR/litecoin-deps-0.0.5.zip \ $(ls qrencode-*/{qrencode.h,.libs/libqrencode.{,l}a} | sort) \ $(ls db-*/build_unix/{libdb_cxx.a,db.h,db_cxx.h,libdb.a,.libs/libdb_cxx-?.?.a} | sort) \ $(find openssl-* -name '*.a' -o -name '*.h' | sort) \ diff --git a/contrib/gitian-descriptors/gitian-win32.yml b/contrib/gitian-descriptors/gitian-win32.yml index fd3b55325..3ffd1d4cd 100644 --- a/contrib/gitian-descriptors/gitian-win32.yml +++ b/contrib/gitian-descriptors/gitian-win32.yml @@ -1,5 +1,5 @@ --- -name: "bitcoin" +name: "litecoin" suites: - "lucid" architectures: @@ -12,12 +12,12 @@ packages: - "faketime" reference_datetime: "2011-01-30 00:00:00" remotes: -- "url": "https://github.com/bitcoin/bitcoin.git" - "dir": "bitcoin" +- "url": "https://github.com/litecoin-project/litecoin.git" + "dir": "litecoin" files: - "qt-win32-4.8.3-gitian-r1.zip" - "boost-win32-1.50.0-gitian2.zip" -- "bitcoin-deps-0.0.5.zip" +- "litecoin-deps-0.0.5.zip" script: | # mkdir $HOME/qt @@ -39,11 +39,11 @@ script: | mv include/boost . cd .. # - unzip bitcoin-deps-0.0.5.zip + unzip litecoin-deps-0.0.5.zip # find -type f | xargs touch --date="$REFERENCE_DATETIME" # - cd bitcoin + cd litecoin mkdir -p $OUTDIR/src git archive HEAD | tar -x -C $OUTDIR/src cp $OUTDIR/src/doc/README_windows.txt $OUTDIR/readme.txt @@ -51,18 +51,19 @@ script: | export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 export FAKETIME=$REFERENCE_DATETIME export TZ=UTC - $HOME/qt/src/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$HOME/build/miniupnpc MINIUPNPC_INCLUDE_PATH=$HOME/build/ BDB_LIB_PATH=$HOME/build/db-4.8.30.NC/build_unix BDB_INCLUDE_PATH=$HOME/build/db-4.8.30.NC/build_unix BOOST_LIB_PATH=$HOME/build/boost_1_50_0/stage/lib BOOST_INCLUDE_PATH=$HOME/build/boost_1_50_0 BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$HOME/build/openssl-1.0.1c OPENSSL_INCLUDE_PATH=$HOME/build/openssl-1.0.1c/include QRENCODE_LIB_PATH=$HOME/build/qrencode-3.2.0/.libs QRENCODE_INCLUDE_PATH=$HOME/build/qrencode-3.2.0 USE_QRCODE=1 INCLUDEPATH=$HOME/build DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=bitcoin USE_BUILD_INFO=1 + $HOME/qt/src/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$HOME/build/miniupnpc MINIUPNPC_INCLUDE_PATH=$HOME/build/ BDB_LIB_PATH=$HOME/build/db-4.8.30.NC/build_unix BDB_INCLUDE_PATH=$HOME/build/db-4.8.30.NC/build_unix BOOST_LIB_PATH=$HOME/build/boost_1_50_0/stage/lib BOOST_INCLUDE_PATH=$HOME/build/boost_1_50_0 BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$HOME/build/openssl-1.0.1c OPENSSL_INCLUDE_PATH=$HOME/build/openssl-1.0.1c/include QRENCODE_LIB_PATH=$HOME/build/qrencode-3.2.0/.libs QRENCODE_INCLUDE_PATH=$HOME/build/qrencode-3.2.0 USE_QRCODE=1 INCLUDEPATH=$HOME/build DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=litecoin USE_BUILD_INFO=1 make $MAKEOPTS - cp release/bitcoin-qt.exe $OUTDIR/ + i586-mingw32msvc-strip release/litecoin-qt.exe + cp release/litecoin-qt.exe $OUTDIR/ # cd src export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 export FAKETIME=$REFERENCE_DATETIME export TZ=UTC - make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoind.exe USE_UPNP=0 DEBUGFLAGS="-frandom-seed=bitcoin" - i586-mingw32msvc-strip bitcoind.exe + make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build litecoind.exe USE_UPNP=0 DEBUGFLAGS="-frandom-seed=litecoin" + i586-mingw32msvc-strip litecoind.exe mkdir $OUTDIR/daemon - cp bitcoind.exe $OUTDIR/daemon + cp litecoind.exe $OUTDIR/daemon cd .. mkdir nsis git archive HEAD | tar -x -C nsis @@ -71,4 +72,4 @@ script: | cp ../../release/* ../release/ cp ../../src/*.exe . makensis ../share/setup.nsi - cp ../share/bitcoin-*-win32-setup.exe $OUTDIR/ + cp ../share/litecoin-*-win32-setup.exe $OUTDIR/ diff --git a/contrib/gitian-descriptors/gitian.yml b/contrib/gitian-descriptors/gitian.yml index 195d0e36f..d42c9f8b5 100644 --- a/contrib/gitian-descriptors/gitian.yml +++ b/contrib/gitian-descriptors/gitian.yml @@ -1,5 +1,5 @@ --- -name: "bitcoin" +name: "litecoin" suites: - "lucid" architectures: @@ -20,8 +20,8 @@ packages: - "libpng12-dev" reference_datetime: "2011-01-30 00:00:00" remotes: -- "url": "https://github.com/bitcoin/bitcoin.git" - "dir": "bitcoin" +- "url": "https://github.com/litecoin-project/litecoin.git" + "dir": "litecoin" files: - "miniupnpc-1.6.tar.gz" - "qrencode-3.2.0.tar.bz2" @@ -40,16 +40,16 @@ script: | make $MAKEOPTS install cd .. # - cd bitcoin + cd litecoin mkdir -p $OUTDIR/src git archive HEAD | tar -x -C $OUTDIR/src cp $OUTDIR/src/doc/README.md $OUTDIR cp $OUTDIR/src/COPYING $OUTDIR cd src - make -f makefile.unix STATIC=1 OPENSSL_INCLUDE_PATH="$INSTDIR/include" OPENSSL_LIB_PATH="$INSTDIR/lib" $MAKEOPTS bitcoind USE_UPNP=0 DEBUGFLAGS= + make -f makefile.unix STATIC=1 OPENSSL_INCLUDE_PATH="$INSTDIR/include" OPENSSL_LIB_PATH="$INSTDIR/lib" $MAKEOPTS litecoind USE_UPNP=0 DEBUGFLAGS= mkdir -p $OUTDIR/bin/$GBUILD_BITS - install -s bitcoind $OUTDIR/bin/$GBUILD_BITS + install -s litecoind $OUTDIR/bin/$GBUILD_BITS cd .. qmake INCLUDEPATH="$INSTDIR/include" LIBS="-L$INSTDIR/lib" RELEASE=1 USE_QRCODE=1 make $MAKEOPTS - install bitcoin-qt $OUTDIR/bin/$GBUILD_BITS + install litecoin-qt $OUTDIR/bin/$GBUILD_BITS diff --git a/contrib/macdeploy/fancy.plist b/contrib/macdeploy/fancy.plist index e73b9b697..7498c8f0a 100644 --- a/contrib/macdeploy/fancy.plist +++ b/contrib/macdeploy/fancy.plist @@ -22,7 +22,7 @@ 370 156 - Bitcoin-Qt.app + Litecoin-Qt.app 128 156 diff --git a/share/qt/Info.plist b/share/qt/Info.plist index 2312094c4..8711aa8c9 100644 --- a/share/qt/Info.plist +++ b/share/qt/Info.plist @@ -15,9 +15,9 @@ CFBundleSignature ???? CFBundleExecutable - Bitcoin-Qt + Litecoin-Qt CFBundleIdentifier - org.bitcoinfoundation.Bitcoin-Qt + org.litecoin.Litecoin-Qt CFBundleURLTypes diff --git a/share/setup.nsi b/share/setup.nsi index b0afd79dc..332debc8d 100644 --- a/share/setup.nsi +++ b/share/setup.nsi @@ -1,4 +1,4 @@ -Name Bitcoin +Name Litecoin RequestExecutionLevel highest SetCompressor /SOLID lzma @@ -6,8 +6,8 @@ SetCompressor /SOLID lzma # General Symbol Definitions !define REGKEY "SOFTWARE\$(^Name)" !define VERSION 0.8.3 -!define COMPANY "Bitcoin project" -!define URL http://www.bitcoin.org/ +!define COMPANY "Litecoin project" +!define URL http://www.litecoin.org/ # MUI Symbol Definitions !define MUI_ICON "../share/pixmaps/bitcoin.ico" @@ -19,8 +19,8 @@ SetCompressor /SOLID lzma !define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM !define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY} !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup -!define MUI_STARTMENUPAGE_DEFAULTFOLDER Bitcoin -!define MUI_FINISHPAGE_RUN $INSTDIR\bitcoin-qt.exe +!define MUI_STARTMENUPAGE_DEFAULTFOLDER Litecoin +!define MUI_FINISHPAGE_RUN $INSTDIR\litecoin-qt.exe !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp" !define MUI_UNFINISHPAGE_NOAUTOCLOSE @@ -45,14 +45,14 @@ Var StartMenuGroup !insertmacro MUI_LANGUAGE English # Installer attributes -OutFile bitcoin-0.8.3-win32-setup.exe -InstallDir $PROGRAMFILES\Bitcoin +OutFile litecoin-0.8.3-win32-setup.exe +InstallDir $PROGRAMFILES\Litecoin CRCCheck on XPStyle on BrandingText " " ShowInstDetails show VIProductVersion 0.8.3.0 -VIAddVersionKey ProductName Bitcoin +VIAddVersionKey ProductName Litecoin VIAddVersionKey ProductVersion "${VERSION}" VIAddVersionKey CompanyName "${COMPANY}" VIAddVersionKey CompanyWebsite "${URL}" @@ -66,18 +66,18 @@ ShowUninstDetails show Section -Main SEC0000 SetOutPath $INSTDIR SetOverwrite on - File ../release/bitcoin-qt.exe + File ../release/litecoin-qt.exe File /oname=COPYING.txt ../COPYING File /oname=readme.txt ../doc/README_windows.txt SetOutPath $INSTDIR\daemon - File ../src/bitcoind.exe + File ../src/litecoind.exe SetOutPath $INSTDIR\src File /r /x *.exe /x *.o ../src\*.* SetOutPath $INSTDIR WriteRegStr HKCU "${REGKEY}\Components" Main 1 # Remove old wxwidgets-based-bitcoin executable and locales: - Delete /REBOOTOK $INSTDIR\bitcoin.exe + Delete /REBOOTOK $INSTDIR\litecoin.exe RMDir /r /REBOOTOK $INSTDIR\locale SectionEnd @@ -87,8 +87,8 @@ Section -post SEC0001 WriteUninstaller $INSTDIR\uninstall.exe !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateDirectory $SMPROGRAMS\$StartMenuGroup - CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Bitcoin.lnk" $INSTDIR\bitcoin-qt.exe - CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall Bitcoin.lnk" $INSTDIR\uninstall.exe + CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Litecoin.lnk" $INSTDIR\litecoin-qt.exe + CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall Litecoin.lnk" $INSTDIR\uninstall.exe !insertmacro MUI_STARTMENU_WRITE_END WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)" WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}" @@ -98,10 +98,10 @@ Section -post SEC0001 WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1 WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1 - WriteRegStr HKCR "bitcoin" "URL Protocol" "" - WriteRegStr HKCR "bitcoin" "" "URL:Bitcoin" - WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bitcoin-qt.exe - WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bitcoin-qt.exe" "%1"' + WriteRegStr HKCR "litecoin" "URL Protocol" "" + WriteRegStr HKCR "litecoin" "" "URL:Litecoin" + WriteRegStr HKCR "litecoin\DefaultIcon" "" $INSTDIR\litecoin-qt.exe + WriteRegStr HKCR "litecoin\shell\open\command" "" '"$INSTDIR\litecoin-qt.exe" "%1"' SectionEnd # Macro for selecting uninstaller sections @@ -119,7 +119,7 @@ done${UNSECTION_ID}: # Uninstaller sections Section /o -un.Main UNSEC0000 - Delete /REBOOTOK $INSTDIR\bitcoin-qt.exe + Delete /REBOOTOK $INSTDIR\litecoin-qt.exe Delete /REBOOTOK $INSTDIR\COPYING.txt Delete /REBOOTOK $INSTDIR\readme.txt RMDir /r /REBOOTOK $INSTDIR\daemon @@ -129,9 +129,9 @@ SectionEnd Section -un.post UNSEC0001 DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" - Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall Bitcoin.lnk" - Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Bitcoin.lnk" - Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk" + Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall Litecoin.lnk" + Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Litecoin.lnk" + Delete /REBOOTOK "$SMSTARTUP\Litecoin.lnk" Delete /REBOOTOK $INSTDIR\uninstall.exe Delete /REBOOTOK $INSTDIR\debug.log Delete /REBOOTOK $INSTDIR\db.log @@ -139,7 +139,7 @@ Section -un.post UNSEC0001 DeleteRegValue HKCU "${REGKEY}" Path DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components" DeleteRegKey /IfEmpty HKCU "${REGKEY}" - DeleteRegKey HKCR "bitcoin" + DeleteRegKey HKCR "litecoin" RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup RmDir /REBOOTOK $INSTDIR Push $R0 diff --git a/src/makefile.linux-mingw b/src/makefile.linux-mingw index 401b367f1..403c929b1 100644 --- a/src/makefile.linux-mingw +++ b/src/makefile.linux-mingw @@ -94,7 +94,7 @@ OBJS= \ obj/leveldb.o \ obj/txdb.o -all: bitcoind.exe +all: litecoind.exe DEFS += -I"$(CURDIR)/leveldb/include" DEFS += -I"$(CURDIR)/leveldb/helpers" @@ -109,7 +109,7 @@ DEFS += -DHAVE_BUILD_INFO obj/%.o: %.cpp $(HEADERS) $(CXX) -c $(xCXXFLAGS) -o $@ $< -bitcoind.exe: $(OBJS:obj/%=obj/%) +litecoind.exe: $(OBJS:obj/%=obj/%) $(CXX) $(xCXXFLAGS) $(xLDFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) @@ -117,15 +117,15 @@ TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) obj-test/%.o: test/%.cpp $(HEADERS) $(CXX) -c $(TESTDEFS) $(xCXXFLAGS) -o $@ $< -test_bitcoin.exe: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) +test_litecoin.exe: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) $(CXX) $(xCXXFLAGS) $(xLDFLAGS) -o $@ $(LIBPATHS) $^ -lboost_unit_test_framework-mt-s $(LIBS) clean: -rm -f obj/*.o - -rm -f bitcoind.exe + -rm -f litecoind.exe -rm -f obj-test/*.o - -rm -f test_bitcoin.exe + -rm -f test_litecoin.exe -rm -f obj/build.h cd leveldb && TARGET_OS=OS_WINDOWS_CROSSCOMPILE $(MAKE) clean && cd .. diff --git a/src/makefile.mingw b/src/makefile.mingw index ef2ad9537..14c8ea72a 100644 --- a/src/makefile.mingw +++ b/src/makefile.mingw @@ -103,10 +103,10 @@ OBJS= \ obj/txdb.o -all: bitcoind.exe +all: litecoind.exe -test check: test_bitcoin.exe FORCE - test_bitcoin.exe +test check: test_litecoin.exe FORCE + test_litecoin.exe # # LevelDB support @@ -120,7 +120,7 @@ leveldb/libleveldb.a: obj/%.o: %.cpp $(HEADERS) $(CXX) -c $(CFLAGS) -o $@ $< -bitcoind.exe: $(OBJS:obj/%=obj/%) +litecoind.exe: $(OBJS:obj/%=obj/%) $(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) @@ -128,11 +128,11 @@ TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) obj-test/%.o: test/%.cpp $(HEADERS) $(CXX) -c $(TESTDEFS) $(CFLAGS) -o $@ $< -test_bitcoin.exe: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) +test_litecoin.exe: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) $(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $(LIBPATHS) $^ -lboost_unit_test_framework$(BOOST_SUFFIX) $(LIBS) clean: - rm -f bitcoind.exe test_bitcoin.exe + rm -f litecoind.exe test_litecoin.exe rm -f obj/* rm -f obj-test/* cd leveldb && $(MAKE) TARGET_OS=NATIVE_WINDOWS clean && cd .. diff --git a/src/makefile.osx b/src/makefile.osx index 2323de66c..2bee224cd 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -121,10 +121,10 @@ ifneq (${USE_IPV6}, -) DEFS += -DUSE_IPV6=$(USE_IPV6) endif -all: bitcoind +all: litecoind -test check: test_bitcoin FORCE - ./test_bitcoin +test check: test_litecoin FORCE + ./test_litecoin # # LevelDB support @@ -151,7 +151,7 @@ obj/%.o: %.cpp -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ rm -f $(@:%.o=%.d) -bitcoind: $(OBJS:obj/%=obj/%) +litecoind: $(OBJS:obj/%=obj/%) $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) @@ -163,11 +163,11 @@ obj-test/%.o: test/%.cpp -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ rm -f $(@:%.o=%.d) -test_bitcoin: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) +test_litecoin: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) $(TESTLIBS) clean: - -rm -f bitcoind test_bitcoin + -rm -f litecoind test_litecoin -rm -f obj/*.o -rm -f obj-test/*.o -rm -f obj/*.P diff --git a/src/makefile.unix b/src/makefile.unix index e404b2824..6b13b2661 100644 --- a/src/makefile.unix +++ b/src/makefile.unix @@ -145,10 +145,10 @@ OBJS= \ obj/txdb.o -all: bitcoind +all: litecoind -test check: test_bitcoin FORCE - ./test_bitcoin +test check: test_litecoin FORCE + ./test_litecoin # # LevelDB support @@ -176,7 +176,7 @@ obj/%.o: %.cpp -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ rm -f $(@:%.o=%.d) -bitcoind: $(OBJS:obj/%=obj/%) +litecoind: $(OBJS:obj/%=obj/%) $(LINK) $(xCXXFLAGS) -o $@ $^ $(xLDFLAGS) $(LIBS) TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) @@ -188,11 +188,11 @@ obj-test/%.o: test/%.cpp -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ rm -f $(@:%.o=%.d) -test_bitcoin: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) +test_litecoin: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) $(LINK) $(xCXXFLAGS) -o $@ $(LIBPATHS) $^ $(TESTLIBS) $(xLDFLAGS) $(LIBS) clean: - -rm -f bitcoind test_bitcoin + -rm -f litecoind test_litecoin -rm -f obj/*.o -rm -f obj-test/*.o -rm -f obj/*.P diff --git a/src/qt/res/bitcoin-qt.rc b/src/qt/res/bitcoin-qt.rc index 3e3672a83..44c95b0f8 100644 --- a/src/qt/res/bitcoin-qt.rc +++ b/src/qt/res/bitcoin-qt.rc @@ -20,14 +20,14 @@ BEGIN BEGIN BLOCK "040904E4" // U.S. English - multilingual (hex) BEGIN - VALUE "CompanyName", "Bitcoin" - VALUE "FileDescription", "Bitcoin-Qt (OSS GUI client for Bitcoin)" + VALUE "CompanyName", "Litecoin" + VALUE "FileDescription", "Litecoin-Qt (OSS GUI client for Litecoin)" VALUE "FileVersion", VER_FILEVERSION_STR - VALUE "InternalName", "bitcoin-qt" + VALUE "InternalName", "litecoin-qt" VALUE "LegalCopyright", COPYRIGHT_STR VALUE "LegalTrademarks1", "Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php." - VALUE "OriginalFilename", "bitcoin-qt.exe" - VALUE "ProductName", "Bitcoin-Qt" + VALUE "OriginalFilename", "litecoin-qt.exe" + VALUE "ProductName", "Litecoin-Qt" VALUE "ProductVersion", VER_PRODUCTVERSION_STR END END