Files
rippled/Makefile
JoelKatz 639ba9dfcb NetworkOPs layer
Begin coding the 'NetworkOPs' layer. This will provide most of the
functions 'client' code will want to call such as functions to lookup
transactions, check on their status, get balances, and so on. Much of the
RPC layer will be a thin wrapper over these functions.

The purpose of this layer is to permit the node to support these functions
regardless of its operating mode or available data, as long as it's
connected to the network. If synchronized and tracking the current ledger,
it can do most functions locally. If not, it can ask for help from other
nodes. If hopeless, it can return an error code.
2011-12-15 01:19:50 -08:00

115 lines
3.1 KiB
Makefile

# Copyright (c) 2009-2010 Satoshi Nakamoto
# Distributed under the MIT/X11 software license, see the accompanying
# file license.txt or http://www.opensource.org/licenses/mit-license.php.
CXX=g++ -I/packages/openssl-1.0.0/include
DEFS=
LIBS= \
-pthread \
-Wl,-Bstatic \
-l boost_system-mt \
-l boost_filesystem-mt \
-l boost_program_options-mt \
-l boost_thread-mt \
-l protobuf \
/packages/openssl-1.0.0/libssl.a /packages/openssl-1.0.0/libcrypto.a
ifdef USE_UPNP
LIBS += -l miniupnpc DEFS += -DUSE_UPNP=$(USE_UPNP)
endif
LIBS+= \
-Wl,-Bdynamic \
-l z \
-l dl \
-l sqlite3
DEBUGFLAGS=-g -DDEBUG
CXXFLAGS=-O0 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS)
HEADERS = \
Application.h \
base58.h \
bignum.h \
BitcoinUtil.h \
CallRPC.h \
Config.h \
ConnectionPool.h \
Conversion.h \
HttpReply.h \
HttpRequest.h \
key.h \
keystore.h \
KnownNodeList.h \
Ledger.h \
LedgerHistory.h \
LedgerMaster.h \
NetworkThread.h \
NewcoinAddress.h \
PackedMessage.h \
PeerDoor.h \
Peer.h \
RequestParser.h \
RPCCommands.h \
RPCDoor.h \
RPC.h \
RPCServer.h \
script.h \
SecureAllocator.h \
TimingService.h \
TransactionBundle.h \
Transaction.h \
types.h \
uint256.h \
UniqueNodeList.h \
ValidationCollection.h \
Wallet.h
SRCS= keystore.cpp BitcoinUtil.cpp \
test.cpp Hanko.cpp Transaction.cpp SHAMap.cpp SHAMapNodes.cpp Serializer.cpp Ledger.cpp \
AccountState.cpp Wallet.cpp NewcoinAddress.cpp Config.cpp PackedMessage.cpp \
Application.cpp TimingService.cpp KnownNodeList.cpp ConnectionPool.cpp Peer.cpp \
PeerDoor.cpp RPCDoor.cpp RPCServer.cpp rpc.cpp Conversion.cpp RequestParser.cpp HashedObject.cpp \
UniqueNodeList.cpp PubKeyCache.cpp SHAMapDiff.cpp DeterministicKeys.cpp LedgerMaster.cpp \
LedgerHistory.cpp NetworkOPs.cpp
DBSRCS= SqliteDatabase.cpp database.cpp
UTILSRCS= pugixml.cpp
# Application.cpp HttpReply.cpp main.cpp RPCCommands.cpp \
# BitcoinUtil.cpp keystore.cpp NewcoinAddress.cpp rpc.cpp UniqueNodeList.cpp \
# CallRPC.cpp KnownNodeList.cpp PackedMessage.cpp RPCDoor.cpp ValidationCollection.cpp \
# Config.cpp Ledger.cpp Peer.cpp RPCServer.cpp Wallet.cpp \
#ConnectionPool.cpp LedgerHistory.cpp PeerDoor.cpp TimingService.cpp \
# Conversion.cpp LedgerMaster.cpp RequestParser.cpp TransactionBundle.cpp util/pugixml.o \
# database/SqliteDatabase.cpp database/database.cpp
# database/linux/mysqldatabase.cpp database/database.cpp database/SqliteDatabase.cpp
OBJS= $(SRCS:%.cpp=%.o) $(DBSRCS:%.cpp=database/%.o) $(UTILSRCS:%.cpp=util/%.o) newcoin.pb.o
#cryptopp/obj/sha.o cryptopp/obj/cpu.o
all: newcoind
newcoin.pb.h: newcoin.proto
protoc --cpp_out=. newcoin.proto
%.o: %.cpp
$(CXX) -c $(CXXFLAGS) -o $@ $<
newcoind: $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
.dep: newcoin.pb.h
$(CXX) -M $(SRCS) $(CXXFLAGS) > .dep
clean:
-rm -f newcoind
-rm -f *.o
-rm -f headers.h.gch
-rm -f newcoin.pb.*
include .dep