ceph/src/Makefile.am

527 lines
13 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
cmon_LDADD = libcommon.a 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 = libcommon.a libmon.a libcrush.a libcommon.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 = libcommon.a libcrush.a
2008-01-28 02:12:20 +00:00
# mds
cmds_SOURCES = cmds.cc msg/SimpleMessenger.cc
cmds_LDADD = libcommon.a 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 = libcommon.a libosdc.a libcrush.a libcommon.a
2008-01-28 02:12:20 +00:00
# osd
cosd_SOURCES = cosd.cc msg/SimpleMessenger.cc
cosd_LDADD = libcommon.a libosd.a libos.a libebofs.a libcrush.a libcommon.a
2008-03-13 03:16:48 +00:00
dupstore_SOURCES = dupstore.cc config.cc
dupstore_LDADD = libcommon.a libos.a libebofs.a
2008-03-13 03:16:48 +00:00
streamtest_SOURCES = streamtest.cc
streamtest_LDADD = libcommon.a libebofs.a libos.a
2008-01-28 19:05:29 +00:00
# synthetic client
csyn_SOURCES = csyn.cc msg/SimpleMessenger.cc
csyn_LDADD = libcommon.a libclient.a libosdc.a libcrush.a libcommon.a
2008-01-28 19:05:29 +00:00
2008-07-11 00:12:34 +00:00
bin_PROGRAMS = \
2008-10-03 23:34:38 +00:00
cmon cmds cosd csyn \
2008-07-11 00:12:34 +00:00
cmonctl \
mkmonfs monmaptool osdmaptool crushtool \
2008-11-13 01:03:11 +00:00
streamtest dupstore dumpjournal testmsgr
2008-07-11 00:12:34 +00:00
2008-10-03 23:34:38 +00:00
bin_SCRIPTS = crun
2008-11-13 01:03:11 +00:00
testmsgr_SOURCES = testmsgr.cc msg/SimpleMessenger.cc
testmsgr_LDADD = libcommon.a
2008-07-11 00:12:34 +00:00
# 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 libcommon.a 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
fakefuse_LDADD = -lfuse libcommon.a libmon.a libmds.a libosd.a libos.a libebofs.a \
libclient.a libosdc.a libcrush.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 = libcommon.a libebofs.a libos.a
2008-07-11 00:12:34 +00:00
mkfs_ebofs_SOURCES = ebofs/mkfs.ebofs.cc
mkfs_ebofs_LDADD = libcommon.a libebofs.a libos.a
2008-01-28 19:05:29 +00:00
fakesyn_SOURCES = fakesyn.cc msg/FakeMessenger.cc
fakesyn_LDADD = libcommon.a libmon.a libmds.a libosd.a libos.a libebofs.a \
libclient.a libosdc.a libcrush.a
2008-01-28 19:05:29 +00:00
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-10-13 20:49:15 +00:00
AM_CXXFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic
AM_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic
2008-01-28 19:05:29 +00:00
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-10-03 23:34:38 +00:00
EXTRA_DIST = mkcephfs.sh mkfs.sh restart.sh startnew.sh vstartnew.sh stop.sh crun
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 = \
common/lockdep.cc \
2008-01-28 02:12:20 +00:00
msg/Message.cc \
common/Logger.cc \
common/Clock.cc \
common/Timer.cc \
2008-02-27 17:57:29 +00:00
common/Finisher.cc \
2008-10-10 22:52:30 +00:00
common/sctp_crc32.c\
common/assert.cc \
2008-11-05 22:09:04 +00:00
common/debug.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/LogEvent.cc \
mds/MDSTable.cc \
2008-07-16 20:54:02 +00:00
mds/InoTable.cc \
mds/MDSTableClient.cc \
mds/MDSTableServer.cc \
mds/AnchorServer.cc \
mds/AnchorClient.cc \
mds/SnapServer.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... and everything else we want to include in a 'make dist'
# that autotools doesn't magically identify.
2008-01-28 20:30:17 +00:00
noinst_HEADERS = \
2008-08-18 20:15:57 +00:00
client/Client.h\
client/SyntheticClient.h\
client/Trace.h\
client/fuse.h\
client/fuse_ll.h\
client/hadoop/CephFSInterface.h\
common/lockdep.h\
2008-10-31 23:17:01 +00:00
common/BackTrace.h\
2008-08-18 20:15:57 +00:00
common/Clock.h\
common/Cond.h\
common/DecayCounter.h\
common/Finisher.h\
common/LogType.h\
common/Logger.h\
common/Mutex.h\
common/RWLock.h\
common/Semaphore.h\
common/Thread.h\
common/ThreadPool.h\
common/Timer.h\
2008-11-19 00:46:52 +00:00
common/WorkQueue.h\
2008-08-18 20:15:57 +00:00
config.h\
crush/CrushWrapper.h\
crush/CrushWrapper.i\
crush/builder.h\
crush/crush.h\
crush/grammar.h\
crush/hash.h\
crush/mapper.h\
crush/sample.txt\
crush/types.h\
ebofs/Allocator.h\
ebofs/BlockDevice.h\
ebofs/BufferCache.h\
ebofs/Cnode.h\
ebofs/Ebofs.h\
ebofs/Onode.h\
ebofs/Table.h\
ebofs/csum.h\
ebofs/nodes.h\
ebofs/types.h\
include/Context.h\
include/Distribution.h\
include/assert.h\
2008-08-18 20:15:57 +00:00
include/atomic.h\
include/bitmapper.h\
include/blobhash.h\
include/buffer.h\
include/byteorder.h\
include/ceph_fs.h\
2008-10-03 00:01:10 +00:00
include/crc32c.h\
2008-08-18 20:15:57 +00:00
include/cstring.h\
include/encoding.h\
include/err.h\
include/error.h\
include/filepath.h\
include/frag.h\
include/hash.h\
include/intarith.h\
include/interval_set.h\
include/inttypes.h\
include/lru.h\
include/nstring.h\
include/object.h\
include/page.h\
include/pobject.h\
include/rangeset.h\
include/statlite.h\
include/triple.h\
include/tstring.h\
include/types.h\
include/uofs.h\
include/utime.h\
include/xlist.h\
kernel/Makefile\
kernel/addr.c\
2008-08-21 00:50:11 +00:00
kernel/caps.c\
2008-10-01 19:00:53 +00:00
kernel/ceph_debug.h\
2008-08-18 20:15:57 +00:00
kernel/crush/crush.c\
kernel/crush/crush.h\
kernel/crush/hash.h\
kernel/crush/mapper.c\
kernel/crush/mapper.h\
kernel/decode.h\
kernel/dir.c\
kernel/export.c\
kernel/file.c\
kernel/inode.c\
2008-08-18 20:15:57 +00:00
kernel/ioctl.c\
kernel/ioctl.h\
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\
2008-08-18 20:15:57 +00:00
kernel/snap.c\
kernel/super.c\
kernel/super.h\
2008-08-18 20:15:57 +00:00
kernel/types.h\
mds/Anchor.h\
mds/AnchorClient.h\
mds/AnchorServer.h\
mds/CDentry.h\
mds/CDir.h\
mds/CInode.h\
mds/Capability.h\
mds/FileLock.h\
mds/InoTable.h\
mds/LocalLock.h\
mds/Locker.h\
mds/LogEvent.h\
mds/LogSegment.h\
mds/MDBalancer.h\
mds/MDCache.h\
mds/MDLog.h\
mds/MDS.h\
mds/MDSMap.h\
mds/MDSTable.h\
mds/MDSTableServer.h\
mds/MDSTableClient.h\
mds/Migrator.h\
mds/ScatterLock.h\
mds/Server.h\
mds/SessionMap.h\
mds/SimpleLock.h\
mds/SnapClient.h\
mds/SnapServer.h\
mds/events/ECommitted.h\
mds/events/EExport.h\
mds/events/EFragment.h\
mds/events/EImportFinish.h\
mds/events/EImportStart.h\
mds/events/EMetaBlob.h\
mds/events/EOpen.h\
mds/events/EPurgeFinish.h\
mds/events/ESession.h\
mds/events/ESessions.h\
mds/events/ESlaveUpdate.h\
mds/events/EString.h\
mds/events/ESubtreeMap.h\
mds/events/ETableClient.h\
mds/events/ETableServer.h\
mds/events/EUpdate.h\
mds/mds_table_types.h\
mds/mdstypes.h\
mds/snap.h\
messages/MCacheExpire.h\
messages/MClientCaps.h\
messages/MClientLease.h\
messages/MClientMount.h\
messages/MClientReconnect.h\
messages/MClientReply.h\
messages/MClientRequest.h\
messages/MClientRequestForward.h\
messages/MClientSession.h\
messages/MClientSnap.h\
messages/MClientUnmount.h\
messages/MDentryUnlink.h\
messages/MDirUpdate.h\
messages/MDiscover.h\
messages/MDiscoverReply.h\
messages/MExportCaps.h\
messages/MExportCapsAck.h\
messages/MExportDir.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/MHeartbeat.h\
messages/MInodeFileCaps.h\
messages/MLock.h\
messages/MMDSBeacon.h\
messages/MMDSBoot.h\
messages/MMDSCacheRejoin.h\
messages/MMDSFragmentNotify.h\
messages/MMDSGetMap.h\
messages/MMDSMap.h\
messages/MMDSResolve.h\
messages/MMDSResolveAck.h\
messages/MMDSSlaveRequest.h\
messages/MMDSTableRequest.h\
messages/MMonCommand.h\
messages/MMonCommandAck.h\
messages/MMonElection.h\
messages/MMonGetMap.h\
messages/MMonMap.h\
messages/MMonPaxos.h\
messages/MOSDAlive.h\
messages/MOSDBoot.h\
messages/MOSDFailure.h\
messages/MOSDGetMap.h\
messages/MOSDIn.h\
messages/MOSDMap.h\
messages/MOSDOp.h\
messages/MOSDOpReply.h\
messages/MOSDOut.h\
messages/MOSDPGCreate.h\
messages/MOSDPGInfo.h\
messages/MOSDPGLog.h\
messages/MOSDPGNotify.h\
messages/MOSDPGQuery.h\
messages/MOSDPGRemove.h\
messages/MOSDPing.h\
messages/MOSDSubOp.h\
messages/MOSDSubOpReply.h\
messages/MPGStats.h\
messages/MPGStatsAck.h\
messages/MPing.h\
messages/MRemoveSnaps.h\
messages/MStatfs.h\
messages/MStatfsReply.h\
mon/ClientMonitor.h\
mon/Elector.h\
mon/MDSMonitor.h\
mon/MonClient.h\
mon/MonMap.h\
mon/Monitor.h\
mon/MonitorStore.h\
mon/OSDMonitor.h\
mon/PGMap.h\
mon/PGMonitor.h\
mon/Paxos.h\
mon/PaxosService.h\
mon/mon_types.h\
msg/Dispatcher.h\
msg/FakeMessenger.h\
msg/Message.h\
msg/Messenger.h\
msg/SimpleMessenger.h\
msg/msg_types.h\
msg/tcp.cc\
msg/tcp.h\
os/BDBMap.h\
os/Fake.h\
os/FakeStoreBDBCollections.h\
os/FileJournal.h\
os/FileStore.h\
os/Journal.h\
os/JournalingObjectStore.h\
os/ObjectStore.h\
osbdb/OSBDB.h\
osd/Ager.h\
osd/OSD.h\
osd/OSDMap.h\
osd/ObjectVersioner.h\
osd/PG.h\
osd/RAID4PG.h\
osd/ReplicatedPG.h\
osd/osd_types.h\
osdc/Blinker.h\
osdc/Filer.h\
osdc/Journaler.h\
osdc/ObjectCacher.h\
osdc/Objecter.h