ceph/src/Makefile.am

500 lines
11 KiB
Makefile
Raw Normal View History

2008-01-28 19:05:29 +00:00
#
# note: the old Makefile is at Makefile.old
#
2008-01-28 02:12:20 +00:00
2008-01-28 19:05:29 +00:00
AUTOMAKE_OPTIONS = gnu
2008-01-28 02:12:20 +00:00
# monitor
cmon_SOURCES = cmon.cc msg/SimpleMessenger.cc
2008-01-28 19:05:29 +00:00
cmon_LDADD = libmon.a libcrush.a libcommon.a
2008-07-11 00:12:34 +00:00
# admin tools
2008-01-28 02:12:20 +00:00
cmonctl_SOURCES = cmonctl.cc msg/SimpleMessenger.cc
cmonctl_LDADD = libcommon.a
mkmonfs_SOURCES = mkmonfs.cc
mkmonfs_LDADD = libmon.a libcommon.a libcrush.a
monmaptool_SOURCES = monmaptool.cc
monmaptool_LDADD = libcommon.a
crushtool_SOURCES = crushtool.cc
crushtool_LDADD = libcommon.a libcrush.a
osdmaptool_SOURCES = osdmaptool.cc
osdmaptool_LDADD = libmon.a libcommon.a libcrush.a
2008-01-28 02:12:20 +00:00
# mds
cmds_SOURCES = cmds.cc msg/SimpleMessenger.cc
2008-01-28 19:05:29 +00:00
cmds_LDADD = libmds.a libosdc.a libcrush.a libcommon.a
2008-01-28 02:12:20 +00:00
dumpjournal_SOURCES = dumpjournal.cc msg/SimpleMessenger.cc
dumpjournal_LDADD = libosdc.a libcrush.a libcommon.a
2008-01-28 02:12:20 +00:00
# osd
cosd_SOURCES = cosd.cc msg/SimpleMessenger.cc
2008-03-13 03:16:48 +00:00
cosd_LDADD = libosd.a libos.a libebofs.a libcrush.a libcommon.a
dupstore_SOURCES = dupstore.cc config.cc
dupstore_LDADD = libos.a libebofs.a libcommon.a
streamtest_SOURCES = streamtest.cc
2008-06-16 22:52:07 +00:00
streamtest_LDADD = libebofs.a libcommon.a libos.a
2008-01-28 19:05:29 +00:00
# synthetic client
csyn_SOURCES = csyn.cc msg/SimpleMessenger.cc
csyn_LDADD = libclient.a libosdc.a libcrush.a libcommon.a
2008-07-11 00:12:34 +00:00
bin_PROGRAMS = \
cmon cmds cosd csyn \
cmonctl \
mkmonfs monmaptool osdmaptool crushtool \
streamtest dupstore dumpjournal
# fuse targets?
if WITH_FUSE
2008-01-28 19:05:29 +00:00
cfuse_SOURCES = cfuse.cc msg/SimpleMessenger.cc client/fuse.cc client/fuse_ll.cc
cfuse_LDADD = -lfuse libclient.a libosdc.a libcrush.a libcommon.a
2008-07-11 00:12:34 +00:00
bin_PROGRAMS += cfuse
if WITH_DEBUG
2008-01-28 19:05:29 +00:00
fakefuse_SOURCES = fakefuse.cc msg/FakeMessenger.cc client/fuse.cc client/fuse_ll.cc
2008-03-13 03:16:48 +00:00
fakefuse_LDADD = -lfuse libmon.a libmds.a libosd.a libos.a libebofs.a \
2008-01-28 19:05:29 +00:00
libclient.a libosdc.a libcrush.a libcommon.a
2008-07-11 00:12:34 +00:00
bin_PROGRAMS += fakefuse
endif
endif
# debug targets?
if WITH_DEBUG
psim_SOURCES = psim.cc
psim_LDADD = libcommon.a libcrush.a
test_ebofs_SOURCES = ebofs/test.ebofs.cc
test_ebofs_LDADD = libebofs.a libcommon.a libos.a
mkfs_ebofs_SOURCES = ebofs/mkfs.ebofs.cc
mkfs_ebofs_LDADD = libebofs.a libcommon.a libos.a
2008-01-28 19:05:29 +00:00
fakesyn_SOURCES = fakesyn.cc msg/FakeMessenger.cc
2008-03-13 03:16:48 +00:00
fakesyn_LDADD = libmon.a libmds.a libosd.a libos.a libebofs.a \
2008-01-28 19:05:29 +00:00
libclient.a libosdc.a libcrush.a libcommon.a
2008-07-11 00:12:34 +00:00
bin_PROGRAMS += psim test.ebofs mkfs.ebofs fakesyn
endif
2008-01-28 19:05:29 +00:00
2008-03-22 18:38:08 +00:00
## libcrush.so
libcrush_so_a_SOURCES = \
crush/builder.c \
crush/mapper.c \
crush/crush.c
libcrush_so_a_CFLAGS = ${AM_CFLAGS} -fPIC
#libcrush.so: libcrush_so.a
# ${CC} -I. -fPIC -shared -Wl,-soname,$@.1 ${CFLAGS} ${LIBS} ${libcrush_so_a_SOURCES} -o $@
#BUILT_SOURCES = libcrush.so
2008-03-13 00:26:38 +00:00
# crushwrapper
2008-07-11 00:12:34 +00:00
#SWIG_FILES = crush/CrushWrapper.i crush/CrushWrapper.h
#crush/CrushWrapper_wrap.cxx: ${SWIG_FILES}
# ${SWIG} -perl5 -c++ -shadow -outdir . $<
#
#libCrushWrapper.so: crush/CrushWrapper_wrap.cxx libcrush_so.a
# ${CXX} ${CXXFLAGS} ${SWIG_PL_INCLUDES} -I. -shared -fPIC $^ config.cc -o $@
2008-04-02 23:06:44 +00:00
#BUILT_SOURCES = libCrushWrapper.so
2008-03-13 00:26:38 +00:00
2008-03-13 02:36:54 +00:00
2008-03-22 18:38:08 +00:00
## libcephclient.so
2008-07-11 00:12:34 +00:00
#libcephclient_so_a_SOURCES = \
# client/Client.cc \
# client/SyntheticClient.cc \
# client/Trace.cc \
# msg/Message.cc \
# common/Logger.cc \
# common/Clock.cc \
# common/Timer.cc \
# common/Finisher.cc \
# mon/MonMap.cc \
# mon/MonClient.cc \
# osd/OSDMap.cc \
# config.cc \
# osdc/Objecter.cc \
# osdc/ObjectCacher.cc \
# osdc/Filer.cc \
# osdc/Journaler.cc
#libcephclient_so_a_CXXFLAGS = ${AM_CXXFLAGS} -fPIC
#libcephclient_so_a_CFLAGS = ${AM_CFLAGS} -fPIC
2008-03-22 18:38:08 +00:00
#BUILT_SOURCES += libcephclient_so.a
2008-03-22 18:38:08 +00:00
#libcephclient.so: libcephclient_so.a libcrush_so.a
# ${CXX} -I. -fPIC -shared -Wl,-soname,$@.1 ${AM_CXXFLAGS} ${LIBS} $^ -o $@
#BUILT_SOURCES += libcephclient.so
## hadoop client
JAVA_BASE = /usr/lib/jvm/java-6-sun
libhadoopcephfs.so: client/hadoop/CephFSInterface.cc libcephclient_so.a
${CXX} -fPIC -shared -Wl,-soname,$@.1 -I. ${AM_CXXFLAGS} -I${JAVA_BASE}/include -I${JAVA_BASE}/include/linux ${LIBS} $^ -o $@
2008-03-24 20:15:43 +00:00
#BUILT_SOURCES += libhadoopcephfs.so
2008-03-13 02:36:54 +00:00
2008-03-13 00:26:38 +00:00
2008-04-15 17:07:23 +00:00
2008-01-28 19:05:29 +00:00
##
INCLUDES =
LDADD = -lpthread
2008-01-28 02:12:20 +00:00
2008-01-28 19:05:29 +00:00
AM_CXXFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE
AM_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE
AM_LDFLAGS =
2008-01-28 02:12:20 +00:00
noinst_LIBRARIES = \
libcommon.a libcrush.a \
2008-03-13 03:16:48 +00:00
libmon.a libmds.a libosdc.a libosd.a libclient.a \
libos.a libebofs.a
2008-06-13 14:33:57 +00:00
noinst_LIBRARIES += libcrush_so.a #libcephclient_so.a
2008-01-28 02:12:20 +00:00
2008-01-28 20:30:17 +00:00
# extra bits
2008-05-20 21:20:14 +00:00
EXTRA_DIST = mkcephfs.sh mkfs.sh restart.sh startnew.sh stop.sh
2008-01-28 20:30:17 +00:00
2008-03-13 03:16:48 +00:00
# cleaning
clean-local:
2008-03-22 18:38:08 +00:00
-rm *.so
2008-07-11 00:12:34 +00:00
# -rm crush/*.cxx
# -rm CrushWrapper.pm
2008-03-13 03:16:48 +00:00
2008-01-28 19:05:29 +00:00
# libs
2008-01-28 02:12:20 +00:00
libcommon_a_SOURCES = \
msg/Message.cc \
common/Logger.cc \
common/Clock.cc \
common/Timer.cc \
2008-02-27 17:57:29 +00:00
common/Finisher.cc \
2008-01-28 02:12:20 +00:00
mon/MonMap.cc \
mon/MonClient.cc \
osd/OSDMap.cc \
2008-01-28 02:12:20 +00:00
config.cc
libcrush_a_SOURCES = \
crush/builder.c \
crush/mapper.c \
crush/crush.c
libmon_a_SOURCES = \
mon/Monitor.cc \
mon/Paxos.cc \
mon/PaxosService.cc \
mon/OSDMonitor.cc \
mon/MDSMonitor.cc \
mon/ClientMonitor.cc \
mon/PGMonitor.cc \
mon/Elector.cc \
mon/MonitorStore.cc
libmds_a_SOURCES = \
mds/MDS.cc \
mds/journal.cc \
mds/Server.cc \
mds/MDCache.cc \
mds/CacheObject.cc \
2008-01-28 02:12:20 +00:00
mds/Locker.cc \
mds/Migrator.cc \
mds/MDBalancer.cc \
mds/CDentry.cc \
mds/CDir.cc \
mds/CInode.cc \
mds/AnchorTable.cc \
mds/AnchorClient.cc \
mds/LogEvent.cc \
mds/MDSTable.cc \
2008-01-28 02:12:20 +00:00
mds/IdAllocator.cc \
2008-07-02 17:48:25 +00:00
mds/SnapTable.cc \
2008-07-02 20:30:24 +00:00
mds/snap.cc \
2008-01-28 02:12:20 +00:00
mds/SessionMap.cc \
mds/MDLog.cc
2008-03-13 03:16:48 +00:00
libebofs_a_SOURCES = \
ebofs/BlockDevice.cc \
ebofs/BufferCache.cc \
ebofs/Ebofs.cc \
ebofs/Allocator.cc
libos_a_SOURCES = \
2008-05-20 19:11:56 +00:00
os/FileJournal.cc \
os/FileStore.cc \
os/JournalingObjectStore.cc
2008-03-13 03:16:48 +00:00
2008-01-28 02:12:20 +00:00
libosd_a_SOURCES = \
osd/PG.cc \
osd/ReplicatedPG.cc \
osd/RAID4PG.cc \
osd/Ager.cc \
osd/OSD.cc
libosdc_a_SOURCES = \
osdc/Objecter.cc \
osdc/ObjectCacher.cc \
osdc/Filer.cc \
osdc/Journaler.cc
libclient_a_SOURCES = \
client/Client.cc \
client/SyntheticClient.cc \
client/Trace.cc
2008-01-28 20:30:17 +00:00
# headers... yuck
noinst_HEADERS = \
msg/tcp.cc\
2008-02-29 23:34:05 +00:00
client/Trace.h\
client/hadoop/CephFSInterface.h\
client/SyntheticClient.h\
client/fuse.h\
client/fuse_ll.h\
client/Client.h\
common/Clock.h\
common/Cond.h\
common/DecayCounter.h\
common/LogType.h\
common/Logger.h\
common/Mutex.h\
common/RWLock.h\
common/Semaphore.h\
common/ThreadPool.h\
common/Timer.h\
common/Thread.h\
common/Finisher.h\
crush/builder.h\
crush/hash.h\
crush/mapper.h\
crush/types.h\
crush/CrushWrapper.h\
2008-03-13 03:16:48 +00:00
crush/CrushWrapper.i\
2008-02-29 23:34:05 +00:00
crush/crush.h\
crush/grammar.h\
crush/sample.txt\
2008-02-29 23:34:05 +00:00
ebofs/Table.h\
ebofs/csum.h\
ebofs/BlockDevice.h\
ebofs/Ebofs.h\
2008-05-20 19:11:56 +00:00
os/FileJournal.h\
os/JournalingObjectStore.h\
2008-02-29 23:34:05 +00:00
ebofs/types.h\
ebofs/Allocator.h\
ebofs/BufferCache.h\
2008-05-20 19:11:56 +00:00
os/Journal.h\
2008-02-29 23:34:05 +00:00
ebofs/nodes.h\
ebofs/Cnode.h\
ebofs/Onode.h\
include/Context.h\
include/Distribution.h\
include/bitmapper.h\
include/blobhash.h\
include/error.h\
include/filepath.h\
include/frag.h\
include/hash.h\
include/interval_set.h\
include/lru.h\
include/pobject.h\
include/rangeset.h\
include/statlite.h\
include/triple.h\
include/uofs.h\
include/byteorder.h\
include/inttypes.h\
include/utime.h\
include/object.h\
include/ceph_fs.h\
include/atomic.h\
include/buffer.h\
include/page.h\
include/xlist.h\
include/types.h\
kernel/crush/crush.c\
2008-02-29 23:34:05 +00:00
kernel/crush/crush.h\
kernel/crush/mapper.c\
2008-02-29 23:34:05 +00:00
kernel/crush/mapper.h\
kernel/crush/hash.h\
kernel/Makefile\
kernel/addr.c\
kernel/decode.h\
kernel/dir.c\
kernel/export.c\
kernel/file.c\
kernel/inode.c\
kernel/mds_client.c\
2008-02-29 23:34:05 +00:00
kernel/mds_client.h\
kernel/mdsmap.c\
kernel/mdsmap.h\
kernel/messenger.c\
kernel/messenger.h\
kernel/mon_client.c\
kernel/mon_client.h\
kernel/osd_client.c\
2008-02-29 23:34:05 +00:00
kernel/osd_client.h\
kernel/osdmap.c\
kernel/osdmap.h\
kernel/proc.c\
kernel/super.c\
kernel/super.h\
2008-02-29 23:34:05 +00:00
mds/Anchor.h\
mds/AnchorClient.h\
mds/AnchorTable.h\
mds/CDentry.h\
mds/CDir.h\
mds/IdAllocator.h\
mds/LocalLock.h\
mds/LogEvent.h\
mds/MDBalancer.h\
mds/MDLog.h\
mds/Migrator.h\
mds/ScatterLock.h\
mds/SimpleLock.h\
mds/events/EAnchor.h\
mds/events/EAnchorClient.h\
mds/events/ESessions.h\
mds/events/EUpdate.h\
mds/events/EExport.h\
mds/events/EFragment.h\
mds/events/EImportFinish.h\
mds/events/EImportStart.h\
mds/events/EMetaBlob.h\
mds/events/EPurgeFinish.h\
mds/events/ESession.h\
mds/events/ESlaveUpdate.h\
mds/events/EString.h\
mds/events/EOpen.h\
mds/events/ESubtreeMap.h\
mds/Locker.h\
mds/LogSegment.h\
mds/CInode.h\
mds/FileLock.h\
mds/SessionMap.h\
mds/Capability.h\
mds/mdstypes.h\
mds/MDCache.h\
mds/Server.h\
mds/MDSMap.h\
mds/MDS.h\
messages/MExportCapsAck.h\
messages/MExportDirAck.h\
messages/MExportDirCancel.h\
messages/MExportDirDiscover.h\
messages/MExportDirDiscoverAck.h\
messages/MExportDirFinish.h\
messages/MExportDirNotify.h\
messages/MExportDirNotifyAck.h\
messages/MExportDirPrep.h\
messages/MExportDirPrepAck.h\
messages/MExportDirWarning.h\
messages/MExportDirWarningAck.h\
messages/MGenericMessage.h\
messages/MInodeFileCaps.h\
messages/MLock.h\
messages/MMDSBeacon.h\
messages/MMDSCacheRejoin.h\
messages/MMDSFragmentNotify.h\
messages/MMDSMap.h\
messages/MMDSResolve.h\
messages/MMDSResolveAck.h\
messages/MMDSSlaveRequest.h\
messages/MMonCommand.h\
messages/MClientReconnect.h\
messages/MClientUnmount.h\
messages/MOSDGetMap.h\
messages/MOSDSubOp.h\
messages/MOSDIn.h\
messages/MMDSBoot.h\
messages/MClientMount.h\
messages/MClientFileCaps.h\
messages/MClientLease.h\
2008-02-29 23:34:05 +00:00
messages/MOSDMap.h\
messages/MOSDOp.h\
messages/MOSDOut.h\
messages/MOSDPGInfo.h\
2008-02-29 23:34:05 +00:00
messages/MOSDPGNotify.h\
messages/MOSDPGQuery.h\
messages/MOSDPGRemove.h\
messages/MOSDPing.h\
messages/MClientRequestForward.h\
messages/MDentryUnlink.h\
messages/MDirUpdate.h\
messages/MClientRequest.h\
messages/MOSDPGLog.h\
messages/MPGStats.h\
messages/MPing.h\
messages/MOSDPGPeer.h\
messages/MOSDPGPeerAck.h\
messages/MOSDPGPeerRequest.h\
messages/MHeartbeat.h\
messages/MOSDPGSummary.h\
messages/MOSDPGUpdate.h\
messages/MExportCaps.h\
messages/MMDSGetMap.h\
messages/MMonCommandAck.h\
messages/MMonElection.h\
messages/MOSDOpReply.h\
messages/MMonMap.h\
2008-03-10 23:30:51 +00:00
messages/MMonGetMap.h\
2008-02-29 23:34:05 +00:00
messages/MStatfs.h\
messages/MOSDSubOpReply.h\
messages/MPingAck.h\
messages/MClientReply.h\
messages/MDiscover.h\
messages/MClientSession.h\
messages/MMonPaxos.h\
messages/MOSDBoot.h\
messages/MOSDPGCreate.h\
2008-02-29 23:34:05 +00:00
messages/MStatfsReply.h\
messages/MAnchor.h\
messages/MCacheExpire.h\
messages/MDiscoverReply.h\
messages/MOSDFailure.h\
messages/MExportDir.h\
2008-05-20 21:20:14 +00:00
messages/MOSDAlive.h\
messages/MPGStatsAck.h\
2008-02-29 23:34:05 +00:00
mon/Elector.h\
mon/MonitorStore.h\
mon/Paxos.h\
mon/PaxosService.h\
mon/mon_types.h\
mon/MDSMonitor.h\
mon/Monitor.h\
mon/PGMonitor.h\
mon/ClientMonitor.h\
mon/OSDMonitor.h\
mon/MonMap.h\
mon/MonClient.h\
2008-02-29 23:34:05 +00:00
mon/PGMap.h\
msg/FakeMessenger.h\
msg/tcp.h\
msg/Message.h\
msg/msg_types.h\
msg/Dispatcher.h\
msg/Messenger.h\
msg/SimpleMessenger.h\
osbdb/OSBDB.h\
osd/Ager.h\
2008-05-20 19:11:56 +00:00
os/BDBMap.h\
os/Fake.h\
os/FakeStoreBDBCollections.h\
os/ObjectStore.h\
2008-02-29 23:34:05 +00:00
osd/ObjectVersioner.h\
osd/RAID4PG.h\
osd/ReplicatedPG.h\
osd/PG.h\
osd/OSDMap.h\
2008-05-20 19:11:56 +00:00
os/FileStore.h\
2008-02-29 23:34:05 +00:00
osd/OSD.h\
osd/osd_types.h\
osdc/Blinker.h\
osdc/Journaler.h\
osdc/Filer.h\
osdc/ObjectCacher.h\
osdc/Objecter.h\
config.h\
include/intarith.h\
2008-05-20 21:20:14 +00:00
include/encoding.h\
include/err.h\
include/nstring.h\
include/tstring.h\
include/cstring.h\
mds/events/ECommitted.h