1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

[MCOL-69] Fix autotools build process

Remove generated Makefiles
Update Makefile.am to specify RPATH as a subdirectory of --prefix
Remove configure artifacts such as config.log, config.h, etc
Remove unneeded backup files (files ending in tilde ~)
This commit is contained in:
Justin Swanhart
2016-05-30 07:41:56 -04:00
parent 88c313ca70
commit 25093d4dd0
147 changed files with 0 additions and 29187 deletions

View File

@ -1,445 +0,0 @@
/***********************************************************************
*
* Copyright (C) 2013 InfiniDB Corp
* All Rights Reserved
*
***********************************************************************/
July 7, 2014
Version 4.6
ENHANCEMENTS INCLUDED IN THIS RELEASE
-------------------------------------
Enh # Short Description
1505 Implement temp file based LargeHashJoin for tuple joins
3683 Allow function(column) = function(column) join
5308 Improve performance of load data infile and insert into select from
ISSUES RESOLVED IN THIS RELEASE
-------------------------------
Bug # Short Description
3858 While "load data infile" is in progress, PrimProc fails to read compressed chunk and retries for more than a minute
4295 CPimport Mode 2: Should check for input files on all PMs before starting loading
4737 Distributed cpimport does not support a list of import files to a single table
4789 InfiniDB came up normally after encountering an critical sessionManager::rollback() error
5134 Source package: After compilation and installation, InfiniDB reported lib not found error during startup
5140 second and subsequent load data infiles have 30 second delay with auto increment
5523 Mysql is resetting when running a query on a information_schema.table and an InfiniDB table.
5727 Improve logging around controllernode start up
5756 After a failed addModule command movePmDbrootConfig did not fail
5758 when amazon UM modules are removed, their associated EBS storages are not removed
5761 Support additional versions of Java for Hadoop installations
5762 Need a method to handle MySQL port conflict on a multi-server install
5773 Startsystem is failing when shutdown has not completed.
5847 IDB-2021 on query using multiple pseudo column functions against same column and aggregation
5848 No CP elimination from idbPartition(col) in the where clause
5865 ERROR 138 (HY000): IDB-1000: 'orders' and 'sub-query' are not joined on a query with an or condition and not in condition
5891 getsystemdisk reporting minus value
5894 Performance issue when inserting a value in an autoincrement column
5930 Not in group by error on query grouping by idbPm and idbDbRoot functions
5931 current builds do not support a non-root / hdfs install
5946 load data infile error: ERROR 122 (HY000): CAL0006: Error verifying compression headers
5947 calonlinealter always creates non compressed columns
5950 getModuleHostNames command on AWS returned a segmentation fault error
5954 calpontSupport for Windows does not recognize options
5958 Query with a subselect is getting an assertion error
5963 configxml.sh fails to set CrossEngineSupport Password from the default setting
5978 crash with prepared statements
5987 hadoop test failed on install, hadoop not install where setenv was looking and not a parcel
5992 Bulk load fails on long schema name, long table name, and long column name combination.
5993 IDB-2016: Non supported item 'c2' on the GROUP BY list.
5996 Table reporting errors after a LDI
5997 standard mysql and infinidb mysql incorrectly starting/stopping each other
6000 New MySQL port test is insufficient
6001 cpimport performance improvement for tables with many dictionary columns
6005 addModule command failed to add an UM
6010 InfiniDB mysql replication doesn't work when UM mysql Port address is not 3306
6013 HW 2.1 testing with 4.5.1-2 - different JAVA_HOME's are setup
6017 Queries with "where date(col) in (select dtCol)" not finding rows
6026 Prevent potential infinite loops reading input in postConfigure
6027 post-install message for a non-root hadoop install is incorrect..
6029 when autocommit off, batchinsert set hwm of dictionary store file to 0
6041 When loading 4160825419 rows cpimport reported as -134141877 rows
6044 'union all' query generates tupleconstantstep.cpp@731: assertion 'fRowConst.getSize() == fRowOut.getSize()' failed
6061 window function returned incorrect results
6066 query with alias is returning IDB-3009: Unknown column error.
6073 setenv scripts issues on Ubuntu
/***********************************************************************
*
* Copyright (C) 2013 InfiniDB Corp
* All Rights Reserved
*
***********************************************************************/
June 23, 2014
Version 4.5.1
ENHANCEMENTS INCLUDED IN THIS RELEASE
-------------------------------------
Enh # Short Description
ISSUES RESOLVED IN THIS RELEASE
-------------------------------
Bug # Short Description
4438 Implement -j option with simple usage to create a specific job log file
4638 Update from 2.2.x to 3.0 is not supported with multiple dbroots
5501 update with subquery using a view with an order by receives an error when using infinidb tables
5523 Mysql is resetting when running a query on a information_schema.table and an InfiniDB table.
5739 install-infinidb.sh script should be removed
5756 After a failed addModule command movePmDbrootConfig did not fail
5758 when amazon UM modules are removed, their associated EBS storages aren't
5761 Add support for additional Java versions with installation on HDFS
5762 Need a method to handle MySQL port conflict on a multi-server install
5785 While running a complex query a Control C aborts the query but may not clear ExeMgr memory
5804 mysql reset occurring following an install when /dev/shm permissions were not set correctly
5838 no prompt postConfigure does not work when mysql password is required.
5873 install failure - No Calpont.xml: failed to be written in config api
5881 with replication, delete with idbpm(colname) in where clause failed with an error.
5884 query returns incorrect results when using an on clause filter involving a table not directly involved in the outer join
5887 " Incorrect results of Is Null "
5891 getsystemdisk returns minus value
5893 Pseudo column functions return an "BPS not created 1" error when used as the 2nd expression in a where clause
5896 getConfig has no linefeed after returning value
5900 PrimProc crashes if NumBlocksPct has '%' in value
5903 startsystem reported successful system start when mysqld aborted
5904 Changing dbroot-to-pm assignment during postConfigure causes double-mounted storage devices
5906 Diagnostic messages logged in the err.log file during new installation
5907 After installation, a rsync error was report in UM1 but the stack seems to be in working state
5908 4.5 non-root install problems
5909 On a stack with replication and local query enabled, rerunning postConfigure caused the two features to become disabled
5910 Object names > 64 cause replication errors
5913 Renaming an autoincrement column is resetting the next value
5915 On hadoop system, SYSTABLE's update was not flushed to disk when implementing split dbroots for systables
5916 query using a view on a view causes ERROR 2013 (HY000): Lost connection to MySQL server during query
5917 non-root gluster / hadoop installs fail - storage types not being offered in postConfigure
5919 Warning of future deprecated "default-character-set" setting on Windows install
5923 ERROR 122 (HY000): Lost connection to DDLProc
5925 Add the two new options to postConfigure -h
5932 Queries with limits sometimes set the extent map min / max incorrectly
5943 mysql daemon fails to start on pm2 of a non-root install local-query configured system
5944 Incorrect schema name in error message
5946 load data infile error: ERROR 122 (HY000): CAL0006: Error verifying compression headers
5947 calonlinealter always creates non compressed columns
5956 Error Code: 138 IDB-2015: Sorting length exceeded when using a view
5958 Query with a subselect is getting an assertion error
5973 large system (1um-30pm) failing to start, ProcMgr incorrect stopping with ProcMons not active
5981 postconfigure upgrade when enabling local-query fails
5983 all the hdfs settings are not in the .bashrc file after install
5993 IDB-2016: Non supported item 'c2' on the GROUP BY list.
5996 Table reporting errors after a LDI
6001 cpimport performance improvement for tables with many dictionary columns
6029 with autocommit off, batchinsert set hwm of dictionary store file to 0
/***********************************************************************
*
* Copyright (C) 2013 InfiniDB Corp
* All Rights Reserved
*
***********************************************************************/
March 31, 2014
Version 4.5
ENHANCEMENTS INCLUDED IN THIS RELEASE
-------------------------------------
Enh # Short Description
4021 Selectable pseudo columns for row/PM identification
4578 Upgrade to latest MySQL 5.1.73
5572 Optimizations to cpimport with Hadoop
5634 Optimization: Project only the necessary columns from views with union all or union
5635 Optimization: Use partition elimination for from clause sub queries and views with union / union all
5657 Local PM query interface
5660 Local PM Sqoop Import
5740 Enable use of MySQL Replication on UMs with InfiniDB
5799 Enhancement request to not provide information when performing a non-hadoop install on a system with hadoop
ISSUES RESOLVED IN THIS RELEASE
-------------------------------
Bug # Short Description
5443 An error is not issued when changing a column's datatype
5444 alter table will not allow an autoincrement column to be renamed.
5611 Windows MySQL doesn't build out of github
5640 Hadoop: dumpcol and eval returned a java error with stack trace when non-existing file is supplied
5647 cpimport -i option doesn't work with modes 1 and 2
5745 hadoop: unknown bulk rollback error on 4PM stack
5748 startsystem failure when user-module is disabled
5805 Query with avg windowing function returning the average at the wrong decimal scale
5806 cpimport loads data incorrectly on a multi-server stack when the table has a mix of compressed and non-compressed columns
5807 concat producing an incorrect count when using a view
5808 colxml error reported on Windows system.
5811 selecting from a view which has a cross engine join produces an ERROR 122 (HY000): fatal error executing query in crossengine client lib(17)(17)
5817 addModule / altersystem-enablemodule fails on amazon with InfiniDB 4.x
5819 Calpont.xml and Calpont.xml.singleserver do not have the same parameters.
5820 Inconsistent rounding on percentile_cont windowing function
5861 post-install reported to have run the setenv-hdfs-12 script on a CDH 4 install
5864 Include calpontSupport in the standard edition
5874 Reset of ProcessMonitor on PM2 on a combo system left mysqld as man_offline
/***********************************************************************
*
* Copyright (C) 2014 InfiniDB Corp
* All Rights Reserved
*
***********************************************************************/
April 14, 2014
Version 4.0.3
ENHANCEMENTS INCLUDED IN THIS RELEASE
-------------------------------------
Enh # Short Description
ISSUES RESOLVED IN THIS RELEASE
-------------------------------
Bug # Short Description
4638 Update from 2.2.x to 3.0 is not supported with multiple dbroots
5610 The MySQL front end no longer outputs a descriptive messages when version buffer is full
5748 startsystem failure when user-module is disabled
5778 Distributed import error message for auto increment overflow is not friendly
5793 Remove O/S version checking in glusterconf
5801 Queries with string comparison in where clause occasionally causes a PM to hang
5805 Query with avg windowing function returning the average at the wrong decimal scale
5806 cpimport loads data incorrectly on a multi-server stack when the table has a mix of compressed and non-compressed columns
5807 concat producing an incorrect count when using a view
5808 colxml error reported on Windows system.
5810 update doesn't flush string file with table oid 3000
5811 selecting from a view which has a cross engine join produces an ERROR 122 (HY000): fatal error executing query in crossengine client lib(17)(17)
5817 addModule / altersystem-enablemodule fails on amazon 4.x
5820 Inconsistent rounding on percentile_cont windowing function
5821 PM join with F & E in-join filter + a UM join will crash ExeMgr
5823 System hung when running concurrent queries with autocommit off
5838 no prompt postConfigure does not work when mysql password is required.
5874 Reset of ProcessMonitor on PM2 on a combo system left mysqld as man_offline
5877 After loading 1 extent worth of data into a table, select count(*) failed.
5882 cleartablelock fails on a multi server system.
5884 query returns incorrect results when using an on clause filter involving a table not directly involved in the outer join
5887 " Incorrect results of Is Null "
5870 select following delete statement is encountering a rid error.
5896 getConfig has no linefeed after returning value
5900 PrimProc crashes if NumBlocksPct has '%' in value
5904 Changing dbroot-to-pm assignment during postConfigure causes double-mounted storage devices
5915 On hadoop system, SYSTABLE's update was not flushed to disk when implementing split dbroots for systables
5916 query using a view on a view causes ERROR 2013 (HY000): Lost connection to MySQL server during query
5917 non-root gluster / hadoop installs fail - storage types not being offered in postConfigure
5932 Queries with limits sometimes set the extent map min / max incorrectly
/***********************************************************************
*
* Copyright (C) 2013 Calpont Corp
* All Rights Reserved
*
***********************************************************************/
February 10, 2014
Version 4.0.2
ENHANCEMENTS INCLUDED IN THIS RELEASE
-------------------------------------
Enh # Short Description
5760 Hadoop with Cloudera parcel-based install
5769 Optimization to not preallocate database column files in HDFS
5732 Add ability to report compressed bytes used rather than file size on disk
ISSUES RESOLVED IN THIS RELEASE
-------------------------------
Bug # Short Description
2437 When expression results in data overflow, no error or warning was returned
4930 no prompt install on AWS had an error when it did not use the volume information.
5363 HAVING statement regression on 4.0 with COUNT DISTINCT
5383 NOT NULL constraint cpimport issues
5604 cpimport jobs hanging on HDFS installs
5617 Invalid Package error reported during the running of calpontSupport - incorrect error message
5636 query gives ERROR 1054 (42S22): Unknown column
5678 ERROR 138 (HY000): 'date_last_update_tk' isn't in tuple.
5682 HDFS updating a row that was inserted sometimes does not update the row
5687 TIMESTAMPADD(SECOND,2147483647, returns incorrect information.
5696 insert statement not providing a warning for truncated data
5697 IDB produces different results for equivalent calculations
5705 hadoop: HdfsFileSystem::listDirectory() not returning all files in directory; bulk rollback not deleting db files
5712 left('unsigned int',6) provides incorrect result
5715 incorrect calculation provided in result set
5716 union sql statement not displaying correct result
5717 create table with invalid Infinidb option does not provide an error or warning
5718 cross engine join results in ERROR 122 (HY000): InetStreamSocket::readToMagic: Remote is closed
5721 amazon upgrade 4.0.0 to 4.0.1 issues
5722 cpimport failing on table to PM17; not handling a boundary case where 2 DBRoots have partial HWM extents
5726 amazon 3.6.3 to 4.0.1 upgrade issue - the ebs storage data not given in postConfigure
5728 update Server cpu-info and disk scheduler in calpontSupport output
5733 databaseSizeReport doesn't report the size of dictionary string files in calpontsys tables
5735 Launching simultaneous databaseSizeReports at virtually the same time can sometimes yield incorrect results
5749 addModule for failed on Amazon system - user_installer password error
5750 dbrm halt/resumes need to be put around the load of dbrm files
5752 ERROR 138 (HY000) at line 2: Sub-query failed: error code 2003 error for query that exceeded TotalUmMemory
5753 When PrimProc restarts, DML statement didn't reset the connections to PrimProc in connector
5757 addModule for UM failed on Amazon system - remote_command error
5759 Must use -p option for hadoop fs -mkdir when creating /usr/local/Calpont
5764 select count(*) from a complex view is returning an incorrect answer.
5765 truncate statement does not show schema in the debug.log
5767 'create table' creates table in front end when spaces are in the table name.
5775 Windows does not log when PrimProc goes down or restarts
5777 LAG function returns invalid answer on a float column
/***********************************************************************
*
* Copyright (C) 2013 Calpont Corp
* All Rights Reserved
*
***********************************************************************/
December 2, 2013
Version 4.0.1
ENHANCEMENTS INCLUDED IN THIS RELEASE
-------------------------------------
Enh # Short Description
5619 Support VPC environment with AMI
ISSUES RESOLVED IN THIS RELEASE
-------------------------------
Bug # Short Description
4996 removeDbroot should be disabled when GlusterFS is configured
5268 Incorrect date_format answer from infindb table
5402 OAM getSystemStatus message in Windows log
5429 LDI updated casual partitioning min/max values for an extent when where is no update to the actual column value.
5454 assignDbrootPmConfig needs to error out when the system is shutdown
5463 calpontSupport is not including the -c option when -a is selected.
5499 'Memory leak of ExeMgr'
5529 _CpNoTf_ is reported in results set
5549 update on two columns with an AND causes mysql reset
5555 HDFS tools installed on non-Hadoop system
5558 Issuing Ctrl-C on a repetitive OAM command will set terminal session to echo off
5566 hdfs error message printed to screen in calpontConsole - run before hdfs is up
5573 hadoop: update a string column is very slow.
5588 Delete statement left table locked.
5596 postConfigure/glusterconf is creating gluster brick directories owned by root user
5614 "hdfsCheck failed" message logged in crit.log when the stack came up normal
5621 can't create large (20+ pm) amazon systems using 4.0 AMI
5626 PrimProc crash running on HDFS
5628 Bug joining against unsigned tinyint data type
5631 After applying the row_number() function the table content is going to be lost.
5638 issue with using a constant in group by column
5642 system hung during distributed import
5646 Left outer join on varchar column and date datetime column to date column not returning all matching rows
5651 Query wrapped in a select * () returns invalid results.
5652 alter table add dictionary column doesnt set Number of allocated blocks correctly
5667 Gluster Install with debian - 'glusterctl status' returns with NOTINSTALLED
5669 gluster install - dbroot setup in gluster was mismatched to OAM setup per pm
5670 DecomSrv is restarting after upgrade to 4.0
5672 dbroot gets unmounted during upgrade when a softlink is used and disk type is internal
5681 cpimport sometimes fails during concurrent query / import test on HDFS
5683 HdfsRdwrMemBuffer: unable to write all bytes error in cpimport
5689 rename table leaves table inaccessible in HDFS
/***********************************************************************
*
* Copyright (C) 2013 Calpont Corp
* All Rights Reserved
*
***********************************************************************/
October 15, 2013
Version 4.0
ENHANCEMENTS INCLUDED IN THIS RELEASE
-------------------------------------
Enh # Short Description
3581 Optimize Memory Utilization for wide string columns
4531 Add support for Windowing Functions
4568 Add ability to report database, schema, and table sizes
4901 Improve performance of concat function
4902 Improve performance of insert() and replace() string functions
4919 Improve performance of makedate() and maketime() functions
4920 Improve performance of adddate(), date_add(), subdate(), date_sub() functions.
5087 Enhance InfiniDB to support over 32 PMs.
5208 Change the Status Updates messages to have state show an ASCII value
5237 Remove restriction preventing user from dropping a logical partition (segment file) in the last physical partition for a DBRoot
5243 Add setting in Calpont.xml for enable/disable corefiles
5300 calpontSupport script performance improvement and additional features
5316 Include schema name in SQL statement debug log entries
5410 Add support for InfiniDB on Apache Hadoop
5414 Add Infinidb support for Apache Sqoop
5421 Add support for running InfiniDB under a Linux Control Group
ISSUES RESOLVED IN THIS RELEASE
-------------------------------
Bug # Launchpad Short Description
2871 Exceeding aggregation limits can block session
4208 'drop table' cannot delete files on NFS
4345 Specific SQL statements exhausts memory in seconds
4552 1025340 Load data infile and cpimport produce different results
1025247
4757 Incorrect results with correlated subquery
4774 Port Data Duplication to debian & Ubuntu
5160 Incorrect result on query with "DATE(IF(t1.`end_date` - INTERVAL 30 DAY < t1.`start_date`, t1.`start_date`, t1.`end_date` - INTERVAL 30 DAY))" expression
5222 Update errors out when dealing with out-of-range date and datetime values
5256 OAM ops returning without DDLProc fully up
5269 swap limit exceeded and not cleared by OAM restart of the system
5272 cast function returns incorrect result
5274 alter table add column returned "Constraints are currently not supported in InfiniDB" error
5287 system came up Active while a pm was disabled and dbroot was assigned to it
5299 stopsystem with Force Option is incorrectly resetting dbrm and save_brm too early
5301 startsystem command system status ended up in MAN_OFFLINE instead of ACTIVE
5304 Windows command prompt exit hangs after cpimport on upgraded database from 3.0.x and earlier
5321 Delete from table command fails when pm1 is down on a combo 2pm system
5322 query failed after disabling and enabling partitions
5323 Backup error opening column file for OID-3132 on a multi node cpimport
5331 select calshowpartitions not showing limits incorrectly for char fields in empty table
5332 shutdownSystem command incorrectly reported 'success'
5349 ERR : Backup error for column file error message occurred running cpimport
5356 Default syslog.conf to the asynchronous option
5374 Data mismatch occurred running query via view
5379 LPAD is not functioning correctly when using a Japanese character
5391 ERROR 138 (HY000): IDB-1000: 'c1, c2' and 'c3' are not joined error message on a query
5392 Reset invalid locale alarm when locale has been corrected
5426 calshowprocesslist issue hard-coded to look for host in first 13 bytes
5427 Distributed cpimport not handling connection failure with WriteEngineServer
5429 Load data infile cleared the min/max values for an extent that was not updated
5436 ERROR 122 (HY000): CAL0001: Alter table Failed: AlterTableProcessor::addColumn Failed to set offset in a compressed data file.
5438 query filters issue
5447 cpimport is reporting that -i is an invalid option
5448 Bug in date_add() with InfiniDB table
5455 PrimProc resets during a particular sql statement
5463 calpontSupport is not including the -c option when -a is selected.
5481 Maintain DBBC/NumThreads setting through upgrade
5488 PrimProc hangs when DecomSvr dies
5494 calpontSupport -a option is not capturing the logs from PM1
5495 DB occasionally hangs querying old data loaded in 3.5.0 or prior release

306
INSTALL~
View File

@ -1,306 +0,0 @@
Installation Instructions
*************************
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
Software Foundation, Inc.
Copyright (C) 2014 InfiniDB, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
InfiniDB, Inc. also gives unlimited permission to copy, distribute and
modify it.
Basic Installation from source
==============================
**** InfiniDB source build instructions ****
Consult the generic installation instructions
that follow for detailed information. The short version is:
cd $HOME
git clone http://github.com/infinidb/mysql
git clone http://github.com/infinidb/infinidb
-- or --
tar -zxf <srcfile>
cd mysql
./configure --prefix=$HOME
make
make install
cd ../infinidb
./configure --prefix=$HOME
make
make install
This will create a directory called Calpont in $HOME which conatins
all the software you need.
Install the InfiniDB software into /usr/local (for example) by copying
the entire Calpont directory tree there.
After untaring the sofware or installing the RPM's, setup the software
to run (this script needs to run with root privileges). Check the Installation
Guide for addition details on using postConfigure:
/usr/local/Calpont/bin/postConfigure
Setup some aliases:
. /usr/local/Calpont/bin/calpontAlias
Connect to MySQL:
idbmysql
A suggested test scenario:
create database calpont;
use calpont;
create table caltest (col1 int, col2 int) engine=infinidb;
show create table caltest;
set autocommit=0;
insert into caltest values (1, 2);
insert into caltest values (3, 4);
commit;
select * from caltest;
To use bulk load:
1. A delimited import file should be created to match the table that
you want to import data to similar to the following. In this
example, the file will be saved as idbtest.tbl:
100|1001|
200|2002|
2. Save/place this file in a directory.
3. From that same directory, import the rows:
/usr/local/Calpont/bin/cpimport calpont caltest caltest.tbl
And check the import:
calpontmysql calpont
select * from caltest;
That's it. Enjoy.
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. (Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You only need
`configure.ac' if you want to change it or regenerate `configure' using
a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that the
`configure' script does not know about. Run `./configure --help' for
details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory. After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture.
Installation Names
==================
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' cannot figure out automatically,
but needs to determine by the type of machine the package will run on.
Usually, assuming the package is built to be run on the _same_
architectures, `configure' can figure that out, but if it prints a
message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share, you
can create a site shell script called `config.site' that gives default
values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script). Here is a another example:
/bin/bash ./configure CONFIG_SHELL=/bin/bash
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
configuration-related scripts to be executed by `/bin/bash'.
`configure' Invocation
======================
`configure' recognizes the following options to control how it operates.
`--help'
`-h'
Print a summary of the options to `configure', and exit.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.

View File

@ -1,75 +0,0 @@
#
# $Id$
#
include rules.mak
.PHONY: export all full scratch compile clean dist
all: compile
# TODO: fix this! a compile step should not install anything
install: compile
full: export
cd utils && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd snmpd && $(MAKE) -C../oam install && $(MAKE) && $(MAKE) install docs
cd versioning && $(MAKE) && $(MAKE) install docs
cd oam && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd dbcon/execplan && $(MAKE) && $(MAKE) install docs
cd dbcon/joblist && $(MAKE) && $(MAKE) install docs
cd versioning && $(MAKE) dbrm tools install_dbrm install_tools test test-dbrm coverage leakcheck
cd writeengine && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd dbcon && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd exemgr && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd ddlproc && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd dmlproc && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd procmon && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd procmgr && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd oamapps && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd primitives && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd decomsvr && $(MAKE) && $(MAKE) install test coverage leakcheck docs
cd tools && $(MAKE) && $(MAKE) install test coverage leakcheck docs
$(MAKE) -C writeengine/server install_server
$(MAKE) -C writeengine/bulk install_bulk
$(MAKE) -C writeengine/splitter install_splitter
echo $(CXXFLAGS) $(DEBUG_FLAGS) > buildFlags
scratch: export
$(MAKE) clean all
export:
build/bootstrap
compile: export
cd utils && $(MAKE) && $(MAKE) install
cd snmpd && $(MAKE) -C../oam install && $(MAKE) && $(MAKE) install
cd versioning && $(MAKE) && $(MAKE) install
cd oam && $(MAKE) && $(MAKE) install
cd dbcon/execplan && $(MAKE) && $(MAKE) install
cd dbcon/joblist && $(MAKE) && $(MAKE) install
cd versioning && $(MAKE) dbrm tools && $(MAKE) install_dbrm install_tools
cd writeengine && $(MAKE) && $(MAKE) install
cd dbcon && $(MAKE) && $(MAKE) install
cd exemgr && $(MAKE) && $(MAKE) install
cd ddlproc && $(MAKE) && $(MAKE) install
cd dmlproc && $(MAKE) && $(MAKE) install
cd procmon && $(MAKE) && $(MAKE) install
cd procmgr && $(MAKE) && $(MAKE) install
cd oamapps && $(MAKE) && $(MAKE) install
cd primitives && $(MAKE) && $(MAKE) install
cd decomsvr && $(MAKE) && $(MAKE) install
cd tools && $(MAKE) && $(MAKE) install
cd versioning && $(MAKE) tools install_tools
$(MAKE) -C writeengine/server install_server
$(MAKE) -C writeengine/bulk install_bulk
$(MAKE) -C writeengine/splitter install_splitter
echo $(CXXFLAGS) $(DEBUG_FLAGS) > buildFlags
clean:
build/clean
rm -rf export
dist:
build/make_src_tar

145
README~
View File

@ -1,145 +0,0 @@
To build the software from source, consult the file INSTALL.
Brief Install Instructions:
1. Install the 3 Calpont InfiniDB RPMs.
2. Install and start the software, run: /usr/local/Calpont/bin/postConfigure
3. Setup some aliases: . /usr/local/Calpont/bin/calpontAlias
4. Connect to MySQL: idbmysql
5. Try the test in step 12 below
Detailed Installation Instructions:
1. Download the package calpont-2.2.0-2.x86_64.rpm.tar.gz (RHEL5 64-BIT)
to the server where you are installing Calpont.
2. Obtain root user access.
3. Unpack the tarball, which will generate 4 RPMs.
tar xvf calpont-2.2.0-2.x86_64.rpm.tar.gz
4. Install the 3 RPMs in this order, the Calpont InfiniDB software will be installed in
/usr/local/Calpont.
rpm -ivh infinidb-libs-2.2.0-2.x86_64.rpm
rpm -ivh infinidb-platform-2.2.0-2.x86_64.rpm
rpm -ivh infinidb-mysql-2.2.0-2.x86_64.rpm
rpm -ivh infinidb-storage-engine-2.2.0-2.x86_64.rpm
5a.To configure and run on a single server system utilizing local disk storage,
run install script:
/usr/local/Calpont/bin/postConfigure
5b.To configure and run on a multi-server system and/or to utilize a SAN storage
system, follow the instructions in the Calpont InfiniDB Installation Guide.
/usr/local/Calpont/bin/postConfigure
6. Ports utilized by the Calpont InfiniDB Software
The Calpont MySQL daemon utilizes port 3306. To use a different port, update
the 2 locations in the following file:
/usr/local/Calpont/mysql/my.cnf
port = 3306
port = 3306
You must reserve the following ports to run the Calpont InfiniDB Software:
8600 - 8622, 8700, and 8800
7. Setup some aliases:
. /usr/local/Calpont/bin/calpontAlias
8. To manually start and stop the Calpont InfiniDB Software as the root user run:
cc startSystem
To stop the Calpont Software, run:
cc stopSystem
9. To start/stop the Calpont InfiniDB Software during system boot/shutdown use the
chkconfig command
/sbin/chkconfig --add infinidb
/sbin/chkconfig infinidb on
10. After the Calpont InfiniDB Software has been started, use the following command to
connect to the Calpont OAM Console and watch for the System to go to the
ACTIVE status. The follow will repeatedly run the OAM command getsysteminfo
every 5 seconds.
calpontOAMconsole getsysteminfo -r
Here is an example display from a Single Server Install:
System and Module statuses
Component Status Last Status Change
------------ ---------------------- ------------------------
System ACTIVE Mon Apr 6 18:07:14 2009
Module dm1 ACTIVE Mon Apr 6 18:07:12 2009
Calpont Process statuses
Process Module Status Last Status Change Process ID
------------------ ------ ------------ ------------------------ ----------
ProcessMonitor dm1 ACTIVE Mon Apr 6 18:06:41 2009 12753
ProcessManager dm1 ACTIVE Mon Apr 6 18:06:46 2009 12954
SNMPTrapDaemon dm1 ACTIVE Mon Apr 6 18:06:41 2009 12963
SNMPAgent dm1 ACTIVE Mon Apr 6 18:06:50 2009 13565
ServerMonitor dm1 ACTIVE Mon Apr 6 18:06:55 2009 13635
DBRMWorkerNode dm1 ACTIVE Mon Apr 6 18:06:51 2009 13640
DBRMControllerNode dm1 ACTIVE Mon Apr 6 18:06:52 2009 13645
ExeMgr dm1 ACTIVE Mon Apr 6 18:07:05 2009 14578
PrimProc dm1 ACTIVE Mon Apr 6 18:07:03 2009 13842
DDLProc dm1 ACTIVE Mon Apr 6 18:07:10 2009 14936
DMLProc dm1 ACTIVE Mon Apr 6 18:07:13 2009 15114
Active Alarm Counts: Critical = 0, Major = 0, Minor = 0, Warning = 0, Info = 0
Once the System status is ACTIVE, enter the following to exit back to the
UNIX prompt:
CNTR<C>
Or to get back Calpont OAM Console Prompt,enter the following:
CNTR<D>
11. Use the following command to access the Calpont InfiniDB MySQL console:
idbmysql
Example output:
Welcome to the Mysql monitor. Commands end with ; or \g.
Your Mysql connection id is 1
Server version: 5.1.26-Calpont-log Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
12. Run the following upgrade script to create calponsys schema and upgrade the syscolumn table: /usr/local/Calpont/bin/upgrade-infinidb.sh
13. As an example to get you started, try this:
create database calpont;
use calpont;
create table caltest (col1 int, col2 int) engine=infinidb;
show create table caltest;
insert into caltest values (1, 2);
insert into caltest values (3, 4);
commit;
select * from caltest;
14. Consult the Admin Guide and Syntax Guide for additional information on how
to get started.

View File

@ -1,62 +0,0 @@
#!/bin/bash
#
# $Id: bootstrap 1333 2011-01-18 17:25:26Z rdempsey $
#
# This script is responsible for setting up a fresh development tree
# following a git checkout. It copies static files and shared include
# files to the export tree prior to building the software.
mkdir -p export/{include,lib,etc,share,bin,sbin,post}
if [ ! $$ ]; then
exit 1
fi
cp build/gdb export/bin
cp build/libgcc_s.so.1 export/lib
cp build/libstdc++.so.6.0.14 export/lib
cp build/files.lst $HOME/MariaDB_InfiniDB/export/mysql/.
cp dbcon/mysql/install_calpont_mysql.sh $HOME/MariaDB_InfiniDB/export/mysql/.
cp dbcon/mysql/my.cnf $HOME/MariaDB_InfiniDB/export/mysql/.
cp dbcon/mysql/mysql-Calpont $HOME/MariaDB_InfiniDB/export/mysql/.
if [ ! $$ ]; then
exit 1
fi
cp -p -r utils/net-snmp export/include
if [ `uname -m` == "x86_64" ]; then
cp -p utils/net-snmp-built-libs/lib64/* export/lib
cp -p utils/net-snmp-built-libs/bin64/* export/sbin
else
egrep -qs Constantine /etc/redhat-release
if [ $? -eq 0 ]; then
cp -p utils/net-snmp-built-libs/fc12lib/libnetsnmp*.so.* export/lib
cp -p utils/net-snmp-built-libs/fc12bin/* export/sbin
else
cp -p utils/net-snmp-built-libs/fc6lib/libnetsnmp*.so.* export/lib
cp -p utils/net-snmp-built-libs/fc6bin/* export/sbin
fi
fi
pushd export/lib >/dev/null
for lib in libnetsnmpagent.so libnetsnmphelpers.so libnetsnmpmibs.so libnetsnmp.so libnetsnmptrapd.so; do
rm -f ${lib} ${lib}.5
ln -s ${lib}.5.2.1 ${lib}.5
ln -s ${lib}.5.2.1 ${lib}
done
popd >/dev/null
./build/genVersion.sh
for x in \
$(find . -name '[mM]akefile' \
| xargs grep -l ^bootstrap: \
| cut -f 2 -d / \
| sort -u)
do
echo bootstrapping $x
make BOOTSTRAP=1 -C $x bootstrap
done

View File

@ -1,125 +0,0 @@
#!/bin/bash
#
# $Id: build_rpms 1734 2012-10-25 18:07:16Z dhill $
#
verbose=0
mysqldir=$HOME/MariaDB_InfiniDB/export/mysql
usage()
{
cat <<EOD
usage: build_rpms [--verbose] [--local-mysql] [--help]
--local-mysql use local (relative) mysql binary tree
EOD
}
for arg in "$@"; do
if [ `expr -- "$arg" : '--verbose'` -eq 9 ]; then
((verbose++))
elif [ `expr -- "$arg" : '--local-mysql'` -eq 13 ]; then
mysqldir=../Calpont/mysql
elif [ `expr -- "$arg" : '--help'` -eq 6 ]; then
usage
exit 0
else
echo "ignoring unknown argument: $arg" 1>&2
fi
done
#try to find project root
while [ ! -d dbcon ]; do
cd ..
curdir=$(pwd)
if [ $curdir = / -o $curdir = $HOME ]; then
echo "I could not find the project root directory: I can't continue!"
exit 1
fi
done
if [ ! -f ./build/releasenum ]; then
echo "I could not find the file 'releasesum' in the build directory: I can't continue!"
exit 1
fi
. ./build/releasenum
# make the install package
buildroot=$HOME/rpm/BUILD/infinidb-$version-$release
rm -rf $buildroot
mkdir -p $buildroot
echo -n "Writing binary files to $buildroot..."
tar -cf - --exclude 'export/include' --exclude 'export/*.tar' export | tar -C $buildroot -xf -
mv $buildroot/export $buildroot/Calpont
#get mysql server files
pushd $mysqldir > /dev/null
mkdir -p $buildroot/Calpont/mysql
cpio -pdmu --quiet $buildroot/Calpont/mysql < files.lst
popd >/dev/null
#clean up some files from buildroot
rm -f $buildroot/Calpont/etc/Doxyfile
for file in $buildroot/Calpont/lib/*; do
if [ -h $file ]; then
rm -f $file
fi
done
#temporarily clean up these BRM thingies
for file in dbrm script-fcns; do
rm -f $buildroot/Calpont/bin/$file
done
#clean up these bulkload scripts
for file in bulkload.sh cleanup.sh dbbuilder.sh dbload.sh cpimport.sh bulkloadp.sh; do
rm -f $buildroot/Calpont/bin/$file
done
rm -f $buildroot/Calpont/lib/libidbboot.a
rm -f $buildroot/Calpont/lib/libiberty.a
mkdir -p $HOME/rpm/BUILD $HOME/rpm/RPMS $HOME/rpm/SRPMS $HOME/rpm/SPECS $HOME/rpm/tmp
if [ ! -f $HOME/.rpmmacros ]; then
cat > $HOME/.rpmmacros <<EOD
%_topdir $HOME/rpm
%_tmppath $HOME/rpm/tmp
# Change to 1 if you want to abort on unpackaged files
%_unpackaged_files_terminate_build 0
EOD
fi
#twiddle with the spec file
packager="support@mariadb.com"
tag=poc
buildinfo=`./build/docBuild $tag | (
read l
b="$l"
while read l; do
b="$b\\n$l"
done
echo $b )`
cp ./build/infinidb.spec.in $HOME/rpm/SPECS/infinidb.spec
sed -i -e "s/@@PACKAGER@@/Packager: $packager/" \
-e "s/@@VERSION@@/Version: $version/" \
-e "s/@@RELEASE@@/Release: $release/" \
-e "s?@@BUILDINFO@@?$buildinfo?" $HOME/rpm/SPECS/infinidb.spec
echo done.
echo -n "Building rpms..."
rpmbuild -ba $HOME/rpm/SPECS/infinidb.spec >/tmp/rpmbuild.out.$$ 2>&1
rc=$?
echo done.
if [ $verbose -gt 0 -o $rc -ne 0 ]; then
cat /tmp/rpmbuild.out.$$
fi
rm -f /tmp/*.$$
exit $rc

View File

@ -1,465 +0,0 @@
#
# $Id$
#
Summary: MariaDB-Columnstore software
Name: columnstore
@@VERSION@@
@@RELEASE@@
Vendor: MariaDB, Inc.
URL: http://www.mariadb.com/
@@PACKAGER@@
Group: Applications
License: Copyright (c) 2016 MariaDB, Inc., all rights reserved; redistributable under the terms of the GPL, see the file COPYING for details.
BuildRoot: %{_tmppath}/%{name}-%{release}-buildroot
%description
MariaDB-Columnstore software meta-package
%package platform
Summary: MariaDB-Columnstore software binaries
Group: Applications
Requires: expect, columnstore-libs
%description platform
MariaDB-Columnstore binary files
@@BUILDINFO@@
%package libs
Summary: MariaDB-Columnstore software libraries
Group: Applications
%description libs
MariaDB-Columnstore libraries
%package enterprise
Summary: InfiniDB Enterprise software binaries
Group: Applications
Requires: columnstore-libs, columnstore-platform
License: Proprietary; Copyright (c) 2016 MariaDB, Inc., all rights reserved
%description enterprise
InfiniDB Enterprise binary files
%package storage-engine
Summary: MariaDB-Columnstore software MariaDB connector
Group: Applications
Obsoletes: columnstore-mysql
Requires: columnstore-libs
%description storage-engine
MariaDB Columnstore connector binary files
%prep
%define _use_internal_dependency_generator 0
%define __find_requires %{nil}
%define __os_install_post %{nil}
%define debug_package %{nil}
%build
%install
mkdir -p %{buildroot}/usr/local
tar -C $RPM_BUILD_DIR/%{name}-%{version}-%{release} -cf - . | tar -C %{buildroot}/usr/local -xf -
%clean
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}-%{release}
%changelog
%files platform
%defattr(-, root, root)
/usr/local/MariaDB/Columnstore/bin/DDLProc
/usr/local/MariaDB/Columnstore/bin/ExeMgr
/usr/local/MariaDB/Columnstore/bin/ProcMgr
/usr/local/MariaDB/Columnstore/bin/ProcMon
/usr/local/MariaDB/Columnstore/bin/DMLProc
/usr/local/MariaDB/Columnstore/bin/WriteEngineServer
/usr/local/MariaDB/Columnstore/bin/cpimport
/usr/local/MariaDB/Columnstore/bin/post-install
/usr/local/MariaDB/Columnstore/bin/post-mysql-install
/usr/local/MariaDB/Columnstore/bin/post-mysqld-install
/usr/local/MariaDB/Columnstore/bin/pre-uninstall
/usr/local/MariaDB/Columnstore/bin/PrimProc
/usr/local/MariaDB/Columnstore/bin/DecomSvr
/usr/local/MariaDB/Columnstore/bin/upgrade-columnstore.sh
/usr/local/MariaDB/Columnstore/bin/run.sh
/usr/local/MariaDB/Columnstore/bin/columnstore
/usr/local/MariaDB/Columnstore/bin/columnstoreSyslog
/usr/local/MariaDB/Columnstore/bin/columnstoreSyslog7
/usr/local/MariaDB/Columnstore/bin/columnstoreSyslog-ng
/usr/local/MariaDB/Columnstore/bin/syslogSetup.sh
/usr/local/MariaDB/Columnstore/bin/cplogger
/usr/local/MariaDB/Columnstore/bin/columnstore.def
/usr/local/MariaDB/Columnstore/bin/dbbuilder
/usr/local/MariaDB/Columnstore/bin/cpimport.bin
/usr/local/MariaDB/Columnstore/bin/load_brm
/usr/local/MariaDB/Columnstore/bin/save_brm
/usr/local/MariaDB/Columnstore/bin/dbrmctl
/usr/local/MariaDB/Columnstore/bin/controllernode
/usr/local/MariaDB/Columnstore/bin/reset_locks
/usr/local/MariaDB/Columnstore/bin/workernode
/usr/local/MariaDB/Columnstore/bin/colxml
/usr/local/MariaDB/Columnstore/bin/clearShm
/usr/local/MariaDB/Columnstore/bin/viewtablelock
/usr/local/MariaDB/Columnstore/bin/cleartablelock
/usr/local/MariaDB/Columnstore/bin/mcsadmin
/usr/local/MariaDB/Columnstore/bin/trapHandler
/usr/local/MariaDB/Columnstore/bin/remote_command.sh
/usr/local/MariaDB/Columnstore/bin/postConfigure
/usr/local/MariaDB/Columnstore/bin/columnstoreLogRotate
/usr/local/MariaDB/Columnstore/bin/transactionLog
/usr/local/MariaDB/Columnstore/bin/columnstoreDBWrite
/usr/local/MariaDB/Columnstore/bin/transactionLogArchiver.sh
/usr/local/MariaDB/Columnstore/bin/system_installer.sh
/usr/local/MariaDB/Columnstore/bin/installer
/usr/local/MariaDB/Columnstore/bin/module_installer.sh
/usr/local/MariaDB/Columnstore/bin/patchInstaller
/usr/local/MariaDB/Columnstore/bin/user_installer.sh
/usr/local/MariaDB/Columnstore/bin/performance_installer.sh
/usr/local/MariaDB/Columnstore/bin/startupTests.sh
/usr/local/MariaDB/Columnstore/bin/os_check.sh
/usr/local/MariaDB/Columnstore/bin/sendtrap
/usr/local/MariaDB/Columnstore/bin/remote_scp_put.sh
/usr/local/MariaDB/Columnstore/bin/remotessh.exp
/usr/local/MariaDB/Columnstore/bin/ServerMonitor
/usr/local/MariaDB/Columnstore/bin/master-rep-columnstore.sh
/usr/local/MariaDB/Columnstore/bin/slave-rep-columnstore.sh
/usr/local/MariaDB/Columnstore/bin/rsync.sh
/usr/local/MariaDB/Columnstore/bin/columnstoreSupport
/usr/local/MariaDB/Columnstore/bin/hardwareReport.sh
/usr/local/MariaDB/Columnstore/bin/softwareReport.sh
/usr/local/MariaDB/Columnstore/bin/configReport.sh
/usr/local/MariaDB/Columnstore/bin/logReport.sh
/usr/local/MariaDB/Columnstore/bin/bulklogReport.sh
/usr/local/MariaDB/Columnstore/bin/resourceReport.sh
/usr/local/MariaDB/Columnstore/bin/hadoopReport.sh
/usr/local/MariaDB/Columnstore/bin/alarmReport.sh
/usr/local/MariaDB/Columnstore/bin/amazonInstaller
/usr/local/MariaDB/Columnstore/bin/remote_command_verify.sh
/usr/local/MariaDB/Columnstore/bin/disable-rep-columnstore.sh
#
%config /usr/local/MariaDB/Columnstore/etc/Calpont.xml
%config /usr/local/MariaDB/Columnstore/etc/ConsoleCmds.xml
%config /usr/local/MariaDB/Columnstore/etc/ProcessConfig.xml
%config /usr/local/MariaDB/Columnstore/etc/snmpd.conf
%config /usr/local/MariaDB/Columnstore/etc/snmptrapd.conf
%config /usr/local/MariaDB/Columnstore/etc/Calpont.xml.singleserver
%config /usr/local/MariaDB/Columnstore/etc/ProcessConfig.xml.singleserver
%config /usr/local/MariaDB/Columnstore/etc/snmpd.conf.singleserver
%config /usr/local/MariaDB/Columnstore/etc/snmptrapd.conf.singleserver
#
/usr/local/MariaDB/Columnstore/etc/MessageFile.txt
/usr/local/MariaDB/Columnstore/etc/ErrorMessage.txt
#
%attr(0666, root, root) /usr/local/MariaDB/Columnstore/local/module
#
/usr/local/MariaDB/Columnstore/releasenum
# Tools...
/usr/local/MariaDB/Columnstore/bin/rollback
/usr/local/MariaDB/Columnstore/bin/editem
/usr/local/MariaDB/Columnstore/bin/getConfig
/usr/local/MariaDB/Columnstore/bin/setConfig
/usr/local/MariaDB/Columnstore/bin/setenv-hdfs-12
/usr/local/MariaDB/Columnstore/bin/setenv-hdfs-20
/usr/local/MariaDB/Columnstore/bin/hdfsCheck
/usr/local/MariaDB/Columnstore/bin/configxml.sh
/usr/local/MariaDB/Columnstore/bin/remote_scp_get.sh
/usr/local/MariaDB/Columnstore/bin/columnstoreAlias
/usr/local/MariaDB/Columnstore/bin/autoConfigure
/usr/local/MariaDB/Columnstore/bin/ddlcleanup
/usr/local/MariaDB/Columnstore/bin/idbmeminfo
/usr/local/MariaDB/Columnstore/bin/IDBInstanceCmds.sh
/usr/local/MariaDB/Columnstore/bin/IDBVolumeCmds.sh
/usr/local/MariaDB/Columnstore/bin/binary_installer.sh
/usr/local/MariaDB/Columnstore/bin/myCnf-include-args.text
/usr/local/MariaDB/Columnstore/bin/myCnf-exclude-args.text
/usr/local/MariaDB/Columnstore/bin/mycnfUpgrade
/usr/local/MariaDB/Columnstore/bin/getMySQLpw
/usr/local/MariaDB/Columnstore/bin/columnstore.conf
/usr/local/MariaDB/Columnstore/sbin/snmpd
/usr/local/MariaDB/Columnstore/sbin/snmptrapd
%config %attr(0666, root, root) /usr/local/MariaDB/Columnstore/etc/AlarmConfig.xml
#
%config /usr/local/MariaDB/Columnstore/local/snmpdx.conf
%config /usr/local/MariaDB/Columnstore/local/snmpdx.conf.singleserver
#
/usr/local/MariaDB/Columnstore/share/snmp/mibs/AGENTX-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/CALPONT-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/DISMAN-EVENT-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/DISMAN-SCRIPT-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/EtherLike-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/HCNUM-TC.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/HOST-RESOURCES-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IANAifType-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IANA-LANGUAGE-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IANA-RTPROTO-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IF-INVERTED-STACK-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IF-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/INET-ADDRESS-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IP-FORWARD-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IP-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-ICMP-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-TCP-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-TC.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-UDP-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-EXTEND-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-TC.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/NOTIFICATION-LOG-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/RFC1155-SMI.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/RFC1213-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/RFC-1215.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/RMON-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SMUX-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-COMMUNITY-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-FRAMEWORK-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-MPD-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-NOTIFICATION-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-PROXY-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-TARGET-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-USM-AES-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-USM-DH-OBJECTS-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-CONF.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-SMI.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-TC.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-TM.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/TCP-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/TRANSPORT-ADDRESS-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-DEMO-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-DISKIO-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-DLMOD-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-IPFWACC-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-SNMP-MIB.txt
/usr/local/MariaDB/Columnstore/share/snmp/mibs/UDP-MIB.txt
#
/usr/local/MariaDB/Columnstore/post/functions
/usr/local/MariaDB/Columnstore/post/test-001.sh
/usr/local/MariaDB/Columnstore/post/test-002.sh
/usr/local/MariaDB/Columnstore/post/test-003.sh
/usr/local/MariaDB/Columnstore/post/test-004.sh
%files enterprise
%defattr(-, root, root)
/usr/local/MariaDB/Columnstore/bin/displayJobGraph.sh
/usr/local/MariaDB/Columnstore/bin/dbhealth.sh
/usr/local/MariaDB/Columnstore/bin/dbhealth.sql
# Tools...
/usr/local/MariaDB/Columnstore/bin/dumpcol
/usr/local/MariaDB/Columnstore/bin/oid2file
/usr/local/MariaDB/Columnstore/bin/evalcol
/usr/local/MariaDB/Columnstore/bin/SesMgr
/usr/local/MariaDB/Columnstore/bin/dumpVss
/usr/local/MariaDB/Columnstore/bin/editTxn
/usr/local/MariaDB/Columnstore/bin/dbprof.pl
/usr/local/MariaDB/Columnstore/bin/dumpobm
/usr/local/MariaDB/Columnstore/bin/file2oid.pl
/usr/local/MariaDB/Columnstore/bin/print_journal
/usr/local/MariaDB/Columnstore/bin/healthcheck
/usr/local/MariaDB/Columnstore/bin/glusterctl
/usr/local/MariaDB/Columnstore/bin/glusteradd
/usr/local/MariaDB/Columnstore/bin/glusterconf
/usr/local/MariaDB/Columnstore/bin/redistributeDB
/usr/local/MariaDB/Columnstore/bin/databaseSizeReport
/usr/local/MariaDB/Columnstore/bin/gdb
#
/usr/local/MariaDB/Columnstore/tools/copy2here.sh
/usr/local/MariaDB/Columnstore/tools/getlogs.sh
/usr/local/MariaDB/Columnstore/tools/getmodules.sh
/usr/local/MariaDB/Columnstore/tools/getps.sh
/usr/local/MariaDB/Columnstore/tools/getsar.sh
/usr/local/MariaDB/Columnstore/tools/getuserinput.sh
/usr/local/MariaDB/Columnstore/tools/prat
/usr/local/MariaDB/Columnstore/tools/prat.sh
/usr/local/MariaDB/Columnstore/tools/ps
/usr/local/MariaDB/Columnstore/tools/pscollect
/usr/local/MariaDB/Columnstore/tools/README
/usr/local/MariaDB/Columnstore/tools/tarfiles.sh
#
%files libs
%defattr(-, root, root)
/usr/local/MariaDB/Columnstore/lib/libconfigcpp.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libddlpackageproc.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libddlpackage.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libdmlpackageproc.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libdmlpackage.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libexecplan.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libfuncexp.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libudfsdk.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libjoblist.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libjoiner.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libloggingcpp.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libmessageqcpp.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libnetsnmpagent.so.5.2.1
/usr/local/MariaDB/Columnstore/lib/libnetsnmphelpers.so.5.2.1
/usr/local/MariaDB/Columnstore/lib/libnetsnmpmibs.so.5.2.1
/usr/local/MariaDB/Columnstore/lib/libnetsnmp.so.5.2.1
/usr/local/MariaDB/Columnstore/lib/libnetsnmptrapd.so.5.2.1
/usr/local/MariaDB/Columnstore/lib/liboamcpp.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libsnmpmanager.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libthreadpool.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libwindowfunction.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libwriteengine.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libwriteengineclient.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libbrm.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/librwlock.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libdataconvert.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/librowgroup.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libcacheutils.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libcommon.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libboost_idb.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libcompress.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libddlcleanuputil.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libbatchloader.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libmysqlcl_idb.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libquerystats.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libwriteengineredistribute.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libjemalloc.so.3.3.0
/usr/local/MariaDB/Columnstore/lib/libidbdatafile.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/hdfs-20.so
/usr/local/MariaDB/Columnstore/lib/hdfs-12.so
/usr/local/MariaDB/Columnstore/lib/libgcc_s.so.1
/usr/local/MariaDB/Columnstore/lib/libstdc++.so.6.0.14
/usr/local/MariaDB/Columnstore/lib/libthrift.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libquerytele.so.1.0.0
%files storage-engine
/usr/local/MariaDB/Columnstore/lib/libcalmysql.so.1.0.0
/usr/local/MariaDB/Columnstore/lib/libudf_mysql.so.1.0.0
/usr/local/MariaDB/Columnstore/mysql/mysql-Calpont
/usr/local/MariaDB/Columnstore/mysql/install_calpont_mysql.sh
/usr/local/MariaDB/Columnstore/mysql/syscatalog_mysql.sql
/usr/local/MariaDB/Columnstore/mysql/dumpcat_mysql.sql
/usr/local/MariaDB/Columnstore/mysql/dumpcat.pl
/usr/local/MariaDB/Columnstore/mysql/calsetuserpriority.sql
/usr/local/MariaDB/Columnstore/mysql/calremoveuserpriority.sql
/usr/local/MariaDB/Columnstore/mysql/calshowprocesslist.sql
%config /usr/local/MariaDB/Columnstore/mysql/my.cnf
#
# Scriptlets
# for an install, pre & post run with $1 set to 1
# for an erase, preun & postun run with $1 set to 0
# for an upgrade, pre & post run first, with $1 set to 2 then the _old_ preun & postun run with $1 set to 1
%post platform
rpmmode=install
if [ "$1" -eq "$1" 2> /dev/null ]; then
if [ $1 -ne 1 ]; then
rpmmode=upgrade
fi
fi
prefix=/usr/local
test -x /usr/local/MariaDB/Columnstore/bin/post-install && /usr/local/MariaDB/Columnstore/bin/post-install --prefix=$prefix --rpmmode=$rpmmode
echo "InfinIDB RPM install completed"
%post libs
rpmmode=install
if [ "$1" -eq "$1" 2> /dev/null ]; then
if [ $1 -ne 1 ]; then
rpmmode=upgrade
fi
fi
prefix=/usr/local
echo "InfinIDB RPM install completed"
%post storage-engine
rpmmode=install
if [ "$1" -eq "$1" 2> /dev/null ]; then
if [ $1 -ne 1 ]; then
rpmmode=upgrade
fi
fi
prefix=/usr/local
echo "InfinIDB RPM install completed"
%post enterprise
rpmmode=install
if [ "$1" -eq "$1" 2> /dev/null ]; then
if [ $1 -ne 1 ]; then
rpmmode=upgrade
fi
fi
prefix=/usr/local
echo "InfinIDB RPM install completed"
%preun platform
rpmmode=upgrade
if [ "$1" -eq "$1" 2> /dev/null ]; then
if [ $1 -ne 1 ]; then
rpmmode=erase
fi
else
rpmmode=erase
fi
if [ $rpmmode = erase ]; then
test -x /usr/local/MariaDB/Columnstore/bin/pre-uninstall && /usr/local/MariaDB/Columnstore/bin/pre-uninstall
fi
exit 0
%preun libs
rpmmode=upgrade
if [ "$1" -eq "$1" 2> /dev/null ]; then
if [ $1 -ne 1 ]; then
rpmmode=erase
fi
else
rpmmode=erase
fi
exit 0
%preun storage-engine
rpmmode=upgrade
if [ "$1" -eq "$1" 2> /dev/null ]; then
if [ $1 -ne 1 ]; then
rpmmode=erase
fi
else
rpmmode=erase
fi
exit 0
%preun enterprise
rpmmode=upgrade
if [ "$1" -eq "$1" 2> /dev/null ]; then
if [ $1 -ne 1 ]; then
rpmmode=erase
fi
else
rpmmode=erase
fi
exit 0

View File

@ -1,3 +0,0 @@
./my.cnf
./mysql-Calpont
./install_calpont_mysql.sh

View File

@ -1,5 +0,0 @@
#
version=5.0
release=0

398
config.h
View File

@ -1,398 +0,0 @@
/* config.h. Generated by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
/* #undef CRAY_STACKSEG_END */
/* Define to 1 if using `alloca.c'. */
/* #undef C_ALLOCA */
/* Define to 1 if you have the `alarm' function. */
#define HAVE_ALARM 1
/* Define to 1 if you have `alloca', as a function or macro. */
#define HAVE_ALLOCA 1
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
#define HAVE_ALLOCA_H 1
/* Define to 1 if you have the <arpa/inet.h> header file. */
#define HAVE_ARPA_INET_H 1
/* Define to 1 if you have the `btowc' function. */
/* #undef HAVE_BTOWC */
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
*/
/* #undef HAVE_DECL_GETENV */
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
don't. */
#define HAVE_DECL_STRERROR_R 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the `dup2' function. */
#define HAVE_DUP2 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the `floor' function. */
#define HAVE_FLOOR 1
/* Define to 1 if you have the `fork' function. */
#define HAVE_FORK 1
/* Define to 1 if you have the `ftime' function. */
#define HAVE_FTIME 1
/* Define to 1 if you have the `ftruncate' function. */
#define HAVE_FTRUNCATE 1
/* Define to 1 if you have the `gethostbyname' function. */
#define HAVE_GETHOSTBYNAME 1
/* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1
/* Define to 1 if you have the `gettimeofday' function. */
#define HAVE_GETTIMEOFDAY 1
/* Define to 1 if you have the `inet_ntoa' function. */
#define HAVE_INET_NTOA 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `isascii' function. */
#define HAVE_ISASCII 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the `localtime_r' function. */
#define HAVE_LOCALTIME_R 1
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
to 0 otherwise. */
#define HAVE_MALLOC 1
/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define to 1 if you have the `mbsrtowcs' function. */
/* #undef HAVE_MBSRTOWCS */
/* Define to 1 if <wchar.h> declares mbstate_t. */
#define HAVE_MBSTATE_T 1
/* Define to 1 if you have the `memchr' function. */
#define HAVE_MEMCHR 1
/* Define to 1 if you have the `memmove' function. */
#define HAVE_MEMMOVE 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `mempcpy' function. */
/* #undef HAVE_MEMPCPY */
/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1
/* Define to 1 if you have the `mkdir' function. */
#define HAVE_MKDIR 1
/* Define to 1 if you have the <ncurses.h> header file. */
#define HAVE_NCURSES_H 1
/* Define to 1 if you have the <netdb.h> header file. */
#define HAVE_NETDB_H 1
/* Define to 1 if you have the <netinet/in.h> header file. */
#define HAVE_NETINET_IN_H 1
/* Define to 1 if you have the `pow' function. */
#define HAVE_POW 1
/* Define to 1 if the system has the type `ptrdiff_t'. */
#define HAVE_PTRDIFF_T 1
/* Define to 1 if you have the <readline/readline.h> header file. */
#define HAVE_READLINE_READLINE_H 1
/* Define to 1 if you have the `regcomp' function. */
#define HAVE_REGCOMP 1
/* Define to 1 if you have the `rmdir' function. */
#define HAVE_RMDIR 1
/* Define to 1 if you have the `select' function. */
#define HAVE_SELECT 1
/* Define to 1 if you have the `setenv' function. */
#define HAVE_SETENV 1
/* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1
/* Define to 1 if you have the `socket' function. */
#define HAVE_SOCKET 1
/* Define to 1 if `stat' has the bug that it succeeds when given the
zero-length file name argument. */
/* #undef HAVE_STAT_EMPTY_STRING_BUG */
/* Define to 1 if stdbool.h conforms to C99. */
#define HAVE_STDBOOL_H 1
/* Define to 1 if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the `strcspn' function. */
#define HAVE_STRCSPN 1
/* Define to 1 if you have the `strdup' function. */
#define HAVE_STRDUP 1
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the `strerror_r' function. */
#define HAVE_STRERROR_R 1
/* Define to 1 if you have the `strftime' function. */
#define HAVE_STRFTIME 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strrchr' function. */
#define HAVE_STRRCHR 1
/* Define to 1 if you have the `strspn' function. */
#define HAVE_STRSPN 1
/* Define to 1 if you have the `strstr' function. */
#define HAVE_STRSTR 1
/* Define to 1 if you have the `strtol' function. */
#define HAVE_STRTOL 1
/* Define to 1 if you have the `strtoul' function. */
#define HAVE_STRTOUL 1
/* Define to 1 if you have the `strtoull' function. */
#define HAVE_STRTOULL 1
/* Define to 1 if you have the <syslog.h> header file. */
#define HAVE_SYSLOG_H 1
/* Define to 1 if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define to 1 if you have the <sys/mount.h> header file. */
#define HAVE_SYS_MOUNT_H 1
/* Define to 1 if you have the <sys/select.h> header file. */
#define HAVE_SYS_SELECT_H 1
/* Define to 1 if you have the <sys/socket.h> header file. */
#define HAVE_SYS_SOCKET_H 1
/* Define to 1 if you have the <sys/statfs.h> header file. */
#define HAVE_SYS_STATFS_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/timeb.h> header file. */
#define HAVE_SYS_TIMEB_H 1
/* Define to 1 if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the `utime' function. */
#define HAVE_UTIME 1
/* Define to 1 if you have the <utime.h> header file. */
#define HAVE_UTIME_H 1
/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */
/* #undef HAVE_UTIME_NULL */
/* Define to 1 if you have the <values.h> header file. */
#define HAVE_VALUES_H 1
/* Define to 1 if you have the `vfork' function. */
#define HAVE_VFORK 1
/* Define to 1 if you have the <vfork.h> header file. */
/* #undef HAVE_VFORK_H */
/* Define to 1 if you have the <wchar.h> header file. */
/* #undef HAVE_WCHAR_H */
/* Define to 1 if you have the <wctype.h> header file. */
/* #undef HAVE_WCTYPE_H */
/* Define to 1 if you have the `wmempcpy' function. */
/* #undef HAVE_WMEMPCPY */
/* Define to 1 if `fork' works. */
/* #undef HAVE_WORKING_FORK */
/* Define to 1 if `vfork' works. */
#define HAVE_WORKING_VFORK 1
/* Define to 1 if you have the <zlib.h> header file. */
#define HAVE_ZLIB_H 1
/* Define to 1 if the system has the type `_Bool'. */
/* #undef HAVE__BOOL */
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
slash. */
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
/* Name of package */
#define PACKAGE "columnstore"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "jira.mariadb.org"
/* Define to the full name of this package. */
#define PACKAGE_NAME "columnstore"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "columnstore 1.0.1"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "columnstore"
/* Define to the version of this package. */
#define PACKAGE_VERSION "1.0.1"
/* Define to 1 if the C compiler supports function prototypes. */
#define PROTOTYPES 1
/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void
/* Define to the type of arg 1 for `select'. */
#define SELECT_TYPE_ARG1 int
/* Define to the type of args 2, 3 and 4 for `select'. */
#define SELECT_TYPE_ARG234 (fd_set *)
/* Define to the type of arg 5 for `select'. */
#define SELECT_TYPE_ARG5 (struct timeval *)
/* Define to 1 if the `setvbuf' function takes the buffering type as its
second argument and the buffer pointer as the third, as on System V before
release 3. */
/* #undef SETVBUF_REVERSED */
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
/* #undef STAT_MACROS_BROKEN */
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if strerror_r returns char *. */
#define STRERROR_R_CHAR_P 1
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
/* #undef TM_IN_SYS_TIME */
/* Version number of package */
#define VERSION "4.6.1"
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */
/* #undef YYTEXT_POINTER */
/* Define like PROTOTYPES; this can be used by system headers. */
#define __PROTOTYPES 1
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to rpl_fnmatch if the replacement function should be used. */
/* #undef fnmatch */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to rpl_malloc if the replacement function should be used. */
/* #undef malloc */
/* Define to a type if <wchar.h> does not define. */
/* #undef mbstate_t */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef mode_t */
/* Define to `long' if <sys/types.h> does not define. */
/* #undef off_t */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef pid_t */
/* Define to equivalent of C99 restrict keyword, or to nothing if this is not
supported. Do not define if restrict is supported directly. */
#define restrict __restrict
/* Define to `unsigned' if <sys/types.h> does not define. */
/* #undef size_t */
/* Define as `fork' if `vfork' does not work. */
/* #undef vfork */
/* Define to empty if the keyword `volatile' does not work. Warning: valid
code using `volatile' can become incorrect without. Disable with care. */
/* #undef volatile */

View File

@ -1,397 +0,0 @@
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
#undef CRAY_STACKSEG_END
/* Define to 1 if using `alloca.c'. */
#undef C_ALLOCA
/* Define to 1 if you have the `alarm' function. */
#undef HAVE_ALARM
/* Define to 1 if you have `alloca', as a function or macro. */
#undef HAVE_ALLOCA
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
#undef HAVE_ALLOCA_H
/* Define to 1 if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H
/* Define to 1 if you have the `btowc' function. */
#undef HAVE_BTOWC
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
*/
#undef HAVE_DECL_GETENV
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
don't. */
#undef HAVE_DECL_STRERROR_R
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `dup2' function. */
#undef HAVE_DUP2
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define to 1 if you have the `floor' function. */
#undef HAVE_FLOOR
/* Define to 1 if you have the `fork' function. */
#undef HAVE_FORK
/* Define to 1 if you have the `ftime' function. */
#undef HAVE_FTIME
/* Define to 1 if you have the `ftruncate' function. */
#undef HAVE_FTRUNCATE
/* Define to 1 if you have the `gethostbyname' function. */
#undef HAVE_GETHOSTBYNAME
/* Define to 1 if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE
/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY
/* Define to 1 if you have the `inet_ntoa' function. */
#undef HAVE_INET_NTOA
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `isascii' function. */
#undef HAVE_ISASCII
/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
/* Define to 1 if you have the `localtime_r' function. */
#undef HAVE_LOCALTIME_R
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
to 0 otherwise. */
#undef HAVE_MALLOC
/* Define to 1 if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
/* Define to 1 if you have the `mbsrtowcs' function. */
#undef HAVE_MBSRTOWCS
/* Define to 1 if <wchar.h> declares mbstate_t. */
#undef HAVE_MBSTATE_T
/* Define to 1 if you have the `memchr' function. */
#undef HAVE_MEMCHR
/* Define to 1 if you have the `memmove' function. */
#undef HAVE_MEMMOVE
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the `mempcpy' function. */
#undef HAVE_MEMPCPY
/* Define to 1 if you have the `memset' function. */
#undef HAVE_MEMSET
/* Define to 1 if you have the `mkdir' function. */
#undef HAVE_MKDIR
/* Define to 1 if you have the <ncurses.h> header file. */
#undef HAVE_NCURSES_H
/* Define to 1 if you have the <netdb.h> header file. */
#undef HAVE_NETDB_H
/* Define to 1 if you have the <netinet/in.h> header file. */
#undef HAVE_NETINET_IN_H
/* Define to 1 if you have the `pow' function. */
#undef HAVE_POW
/* Define to 1 if the system has the type `ptrdiff_t'. */
#undef HAVE_PTRDIFF_T
/* Define to 1 if you have the <readline/readline.h> header file. */
#undef HAVE_READLINE_READLINE_H
/* Define to 1 if you have the `regcomp' function. */
#undef HAVE_REGCOMP
/* Define to 1 if you have the `rmdir' function. */
#undef HAVE_RMDIR
/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT
/* Define to 1 if you have the `setenv' function. */
#undef HAVE_SETENV
/* Define to 1 if you have the `setlocale' function. */
#undef HAVE_SETLOCALE
/* Define to 1 if you have the `socket' function. */
#undef HAVE_SOCKET
/* Define to 1 if `stat' has the bug that it succeeds when given the
zero-length file name argument. */
#undef HAVE_STAT_EMPTY_STRING_BUG
/* Define to 1 if stdbool.h conforms to C99. */
#undef HAVE_STDBOOL_H
/* Define to 1 if you have the <stddef.h> header file. */
#undef HAVE_STDDEF_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the `strcasecmp' function. */
#undef HAVE_STRCASECMP
/* Define to 1 if you have the `strchr' function. */
#undef HAVE_STRCHR
/* Define to 1 if you have the `strcspn' function. */
#undef HAVE_STRCSPN
/* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP
/* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR
/* Define to 1 if you have the `strerror_r' function. */
#undef HAVE_STRERROR_R
/* Define to 1 if you have the `strftime' function. */
#undef HAVE_STRFTIME
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the `strrchr' function. */
#undef HAVE_STRRCHR
/* Define to 1 if you have the `strspn' function. */
#undef HAVE_STRSPN
/* Define to 1 if you have the `strstr' function. */
#undef HAVE_STRSTR
/* Define to 1 if you have the `strtol' function. */
#undef HAVE_STRTOL
/* Define to 1 if you have the `strtoul' function. */
#undef HAVE_STRTOUL
/* Define to 1 if you have the `strtoull' function. */
#undef HAVE_STRTOULL
/* Define to 1 if you have the <syslog.h> header file. */
#undef HAVE_SYSLOG_H
/* Define to 1 if you have the <sys/file.h> header file. */
#undef HAVE_SYS_FILE_H
/* Define to 1 if you have the <sys/mount.h> header file. */
#undef HAVE_SYS_MOUNT_H
/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H
/* Define to 1 if you have the <sys/statfs.h> header file. */
#undef HAVE_SYS_STATFS_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/timeb.h> header file. */
#undef HAVE_SYS_TIMEB_H
/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#undef HAVE_SYS_WAIT_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `utime' function. */
#undef HAVE_UTIME
/* Define to 1 if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */
#undef HAVE_UTIME_NULL
/* Define to 1 if you have the <values.h> header file. */
#undef HAVE_VALUES_H
/* Define to 1 if you have the `vfork' function. */
#undef HAVE_VFORK
/* Define to 1 if you have the <vfork.h> header file. */
#undef HAVE_VFORK_H
/* Define to 1 if you have the <wchar.h> header file. */
#undef HAVE_WCHAR_H
/* Define to 1 if you have the <wctype.h> header file. */
#undef HAVE_WCTYPE_H
/* Define to 1 if you have the `wmempcpy' function. */
#undef HAVE_WMEMPCPY
/* Define to 1 if `fork' works. */
#undef HAVE_WORKING_FORK
/* Define to 1 if `vfork' works. */
#undef HAVE_WORKING_VFORK
/* Define to 1 if you have the <zlib.h> header file. */
#undef HAVE_ZLIB_H
/* Define to 1 if the system has the type `_Bool'. */
#undef HAVE__BOOL
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
slash. */
#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if the C compiler supports function prototypes. */
#undef PROTOTYPES
/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
/* Define to the type of arg 1 for `select'. */
#undef SELECT_TYPE_ARG1
/* Define to the type of args 2, 3 and 4 for `select'. */
#undef SELECT_TYPE_ARG234
/* Define to the type of arg 5 for `select'. */
#undef SELECT_TYPE_ARG5
/* Define to 1 if the `setvbuf' function takes the buffering type as its
second argument and the buffer pointer as the third, as on System V before
release 3. */
#undef SETVBUF_REVERSED
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
#undef STACK_DIRECTION
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
#undef STAT_MACROS_BROKEN
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define to 1 if strerror_r returns char *. */
#undef STRERROR_R_CHAR_P
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
#undef TM_IN_SYS_TIME
/* Version number of package */
#undef VERSION
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */
#undef YYTEXT_POINTER
/* Define like PROTOTYPES; this can be used by system headers. */
#undef __PROTOTYPES
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define to rpl_fnmatch if the replacement function should be used. */
#undef fnmatch
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
#undef inline
#endif
/* Define to rpl_malloc if the replacement function should be used. */
#undef malloc
/* Define to a type if <wchar.h> does not define. */
#undef mbstate_t
/* Define to `int' if <sys/types.h> does not define. */
#undef mode_t
/* Define to `long' if <sys/types.h> does not define. */
#undef off_t
/* Define to `int' if <sys/types.h> does not define. */
#undef pid_t
/* Define to equivalent of C99 restrict keyword, or to nothing if this is not
supported. Do not define if restrict is supported directly. */
#undef restrict
/* Define to `unsigned' if <sys/types.h> does not define. */
#undef size_t
/* Define as `fork' if `vfork' does not work. */
#undef vfork
/* Define to empty if the keyword `volatile' does not work. Warning: valid
code using `volatile' can become incorrect without. Disable with care. */
#undef volatile

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +0,0 @@
include ../rules.mak
#******************************************************************************************
# $Id: Makefile 9255 2013-02-05 13:20:13Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
TARGETS = bootstrap clean test docs coverage leakcheck install
.PHONY: all $(TARGETS)
all:
$(MAKE) -C execplan
$(MAKE) -C ddlpackage
$(MAKE) -C ddlpackageproc
$(MAKE) -C dmlpackage
$(MAKE) -C dmlpackageproc
$(MAKE) -C joblist
$(MAKE) -C mysql
$(TARGETS):
$(MAKE) -C execplan $@
$(MAKE) -C ddlpackage $@
$(MAKE) -C ddlpackageproc $@
$(MAKE) -C dmlpackage $@
$(MAKE) -C dmlpackageproc $@
$(MAKE) -C joblist $@
$(MAKE) -C mysql $@

View File

@ -1,187 +0,0 @@
include ../../rules.mak
#
# Copyright (C) 2009-2012 Calpont Corporation.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
#
# $Id: Makefile 8436 2012-04-04 18:18:21Z rdempsey $
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libddlpackage.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
TLIBS=-L. -lddlpackage -L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl
GLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp
SRCS=\
serialize.cpp \
ddl-scan.cpp \
ddl-gram.cpp \
ddlpkg.cpp \
columndef.cpp \
createtable.cpp \
tabledef.cpp \
sqlstatement.cpp \
sqlstatementlist.cpp \
altertable.cpp \
createindex.cpp \
dropindex.cpp \
droptable.cpp \
sqlparser.cpp \
markpartition.cpp \
restorepartition.cpp \
droppartition.cpp
LINCLUDES=\
ddlpkg.h \
sqlparser.h
#all: $(LIBRARY) tdriver gramtest
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap: ddl-scan.cpp ddl-gram.cpp ddl-gram.h
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
ddl-scan.cpp: ddl.l
flex -i -L -Pddl -oddl-scan-temp.cpp ddl.l
set +e; \
if [ -f ddl-scan.cpp ]; \
then diff -abBq ddl-scan-temp.cpp ddl-scan.cpp >/dev/null 2>&1; \
if [ $$? -ne 0 ]; \
then mv -f ddl-scan-temp.cpp ddl-scan.cpp; \
else touch ddl-scan.cpp; \
fi; \
else mv -f ddl-scan-temp.cpp ddl-scan.cpp; \
fi
rm -f ddl-scan-temp.cpp
ddl-gram.cpp ddl-gram.h: ddl.y
bison -l -v -d -p ddl -o ddl-gram-temp.cpp ddl.y
set +e; \
if [ -f ddl-gram.cpp ]; \
then diff -abBq ddl-gram-temp.cpp ddl-gram.cpp >/dev/null 2>&1; \
if [ $$? -ne 0 ]; \
then mv -f ddl-gram-temp.cpp ddl-gram.cpp; \
else touch ddl-gram.cpp; \
fi; \
else mv -f ddl-gram-temp.cpp ddl-gram.cpp; \
fi
set +e; \
if [ -f ddl-gram.h ]; \
then diff -abBq ddl-gram-temp.hpp ddl-gram.h >/dev/null 2>&1; \
if [ $$? -ne 0 ]; \
then mv -f ddl-gram-temp.hpp ddl-gram.h; \
else touch ddl-gram.h; \
fi; \
else mv -f ddl-gram-temp.hpp ddl-gram.h; \
fi
rm -f ddl-gram-temp.cpp ddl-gram-temp.hpp ddl-gram-temp.output
ddl.l: ddl-gram.h
sqlparser.cpp: ddl-gram.h
ddl-scan.o: ddl-scan.cpp ddl-gram.h
$(COMPILE.cpp) -o $@ ddl-scan.cpp
ddl-gram.o: ddl-gram.cpp
$(COMPILE.cpp) -o $@ ddl-gram.cpp
gramtest: gramtest.o $(LIBRARY)
$(LINK.cpp) -L. -L$(EXPORT_ROOT)/lib -o $@ $^ -lddlpackage -lmessageqcpp -lconfigcpp -lxml2
sertest: sertest.o $(LIBRARY)
$(LINK.cpp) -L. -L$(EXPORT_ROOT)/lib -o $@ $^ -lddlpackage -lmessageqcpp -lconfigcpp -lxml2
etags:
etags ddlpkg.h sqlparser.h
clean:
rm -f *.o $(PROGRAM) $(LIBRARY) TAGS tdriver core.* core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.*
rm -rf html
rm -f gramtest
rm -f ddl-scan-temp.cpp
rm -f ddl-gram-temp.cpp ddl-gram-temp.hpp ddl-gram-temp.output
docs:
doxygen
tdriver: tdriver.o $(LIBRARY)
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
xtest: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver > ./tdriver.output
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
# In the flex/bison generated sources, there is code that we don't use
# and can't avoid generating. So, these are omitted from coverage
# testing.
coverage:
xcoverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(filter-out ddl-gram.cpp ddl-scan.cpp, $(SRCS)); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(filter-out ddl-gram.cpp ddl-scan.cpp, $(SRCS))
leakcheck:
xleakcheck: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,115 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 16 2006-05-12 19:59:20Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
# Take this out for now...
#LIBS64=$(shell test `arch -k` == 'x86_64' && echo -DBOOST_WORKAROUND)
PROGRAM=libddlpackageproc.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=$(LIBS64) -I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic #-Wno-deprecated-declarations -fno-strict-aliasing
CLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lconfigcpp -lxml2 -lcppunit \
-lddlpackage -lwriteengine -lwriteengineclient -lexecplan -lloggingcpp -lrwlock \
-lbrm -ldl
TLIBS=-L. -lddlpackageproc -L../joblist -ljoblist -lfuncexp -ljoiner -lcommon \
-L../resultset $(CLIBS) -ldataconvert -lrowgroup -lcacheutils $(IDB_WRITE_LIBS)
GLIBS=$(CLIBS) $(IDB_WRITE_LIBS)
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lddlpackage -lexecplan -lwriteengine -lwriteengineclient
SRCS=\
ddlpackageprocessor.cpp \
createtableprocessor.cpp \
altertableprocessor.cpp \
droptableprocessor.cpp \
markpartitionprocessor.cpp \
restorepartitionprocessor.cpp \
droppartitionprocessor.cpp
LINCLUDES=\
ddlpackageprocessor.h \
createtableprocessor.h \
altertableprocessor.h \
droptableprocessor.h \
markpartitionprocessor.h \
restorepartitionprocessor.h \
droppartitionprocessor.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* *.dat
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
xtest: $(LIBRARY) tdriver
rm -f FILE_*.dat
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck:
xleakcheck: $(LIBRARY) tdriver
rm -f FILE_*.dat
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,193 +0,0 @@
include ../../rules.mak
#
# Copyright (C) 2009-2012 Calpont Corporation.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
#
# $Id: Makefile 8436 2012-04-04 18:18:21Z rdempsey $
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libdmlpackage.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
TLIBS=-L. -ldmlpackage -L$(EXPORT_ROOT)/lib -lexecplan -ljoblist -lfuncexp -ldataconvert -lbrm -lrwlock -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl
GLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -lexecplan
SRCS=\
dml-scan.cpp \
dml-gram.cpp \
calpontdmlfactory.cpp \
calpontdmlpackage.cpp \
dmlcolumn.cpp \
deletedmlpackage.cpp \
dmlobject.cpp \
insertdmlpackage.cpp \
mysqldmlstatement.cpp \
oracledmlstatement.cpp \
row.cpp \
dmltable.cpp \
updatedmlpackage.cpp \
vendordmlstatement.cpp \
commanddmlpackage.cpp \
dmlpkg.cpp \
dmlparser.cpp
LINCLUDES=\
calpontdmlfactory.h \
calpontdmlpackage.h \
dmlcolumn.h \
deletedmlpackage.h \
dmlobject.h \
dmlpackage.h \
insertdmlpackage.h \
mysqldmlstatement.h \
oracledmlstatement.h \
row.h \
dmltable.h \
updatedmlpackage.h \
vendordmlstatement.h \
commanddmlpackage.h \
dmlpkg.h \
dmlparser.h
#all: $(LIBRARY) tdriver gramtest
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
dmlparser.cpp: dml-gram.h
dml-scan.o: dml-scan.cpp dml-gram.h
$(COMPILE.cpp) -o $@ dml-scan.cpp
dml-gram.o: dml-gram.cpp
$(COMPILE.cpp) -o $@ dml-gram.cpp
gramtest: gramtest.o $(LIBRARY)
$(LINK.cpp) -L. -L$(EXPORT_ROOT)/lib -o $@ $^ -ldmlpackage -lmessageqcpp -lconfigcpp -lxml2
etags:
etags dmlpkg.h dmlparser.h
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap: dml-scan.cpp dml-gram.cpp dml-gram.h
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
dml-scan.cpp: dml.l
flex -i -L -Pdml -odml-scan-temp.cpp dml.l
set +e; \
if [ -f dml-scan.cpp ]; \
then diff -abBq dml-scan-temp.cpp dml-scan.cpp >/dev/null 2>&1; \
if [ $$? -ne 0 ]; \
then mv -f dml-scan-temp.cpp dml-scan.cpp; \
else touch dml-scan.cpp; \
fi; \
else mv -f dml-scan-temp.cpp dml-scan.cpp; \
fi
rm -f dml-scan-temp.cpp
dml-gram.cpp dml-gram.h: dml.y
bison -l -v -d -p dml -o dml-gram-temp.cpp dml.y
set +e; \
if [ -f dml-gram.cpp ]; \
then diff -abBq dml-gram-temp.cpp dml-gram.cpp >/dev/null 2>&1; \
if [ $$? -ne 0 ]; \
then mv -f dml-gram-temp.cpp dml-gram.cpp; \
else touch dml-gram.cpp; \
fi; \
else mv -f dml-gram-temp.cpp dml-gram.cpp; \
fi
set +e; \
if [ -f dml-gram.h ]; \
then diff -abBq dml-gram-temp.hpp dml-gram.h >/dev/null 2>&1; \
if [ $$? -ne 0 ]; \
then mv -f dml-gram-temp.hpp dml-gram.h; \
else touch dml-gram.h; \
fi; \
else mv -f dml-gram-temp.hpp dml-gram.h; \
fi
rm -f dml-gram-temp.cpp dml-gram-temp.hpp dml-gram-temp.output
dml.l: dml-gram.h
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.*
rm -rf html
rm -f gramtest
rm -f dml-scan-temp.cpp
rm -f dml-gram-temp.cpp dml-gram-temp.hpp dml-gram-temp.output
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
xtest: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver > ./tdriver.output
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(filter-out dml-gram.cpp dml-scan.cpp, $(SRCS)); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(filter-out dml-gram.cpp dml-scan.cpp, $(SRCS))
leakcheck:
xleakcheck: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,113 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 16 2006-05-12 19:59:20Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libdmlpackageproc.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
CLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lconfigcpp -lxml2 -lcppunit \
-ldmlpackage -lwriteengine -lexecplan -lloggingcpp -ldl -lddlpackage -ldataconvert \
-lddlpackageproc -lrwlock -lbrm
TLIBS=-L. -ldmlpackageproc $(CLIBS)
GLIBS=$(CLIBS)
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lexecplan -lwriteengine -ldmlpackage
SRCS=\
deletepackageprocessor.cpp \
dmlpackageprocessor.cpp \
insertpackageprocessor.cpp \
updatepackageprocessor.cpp \
commandpackageprocessor.cpp \
autoincrementdata.cpp \
tablelockdata.cpp
LINCLUDES=\
deletepackageprocessor.h \
dmlpackageprocessor.h \
insertpackageprocessor.h \
updatepackageprocessor.h \
commandpackageprocessor.h \
autoincrementdata.h \
tablelockdata.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
xtest: $(LIBRARY) tdriver
#rm -f FILE_*.dat
#LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: tdriver-gcov
rm -f *.gcda
rm -f FILE_*.dat
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck:
xleakcheck: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,370 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 9559 2013-05-22 17:58:13Z xlou $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck bootstrap
PROGRAM=libexecplan.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
CLIBS=-L$(EXPORT_ROOT)/lib -ldl -lmessageqcpp -lconfigcpp -lxml2 -ljoblist -lfuncexp -lloggingcpp
TLIBS=-L. -lexecplan -L$(EXPORT_ROOT)/lib -lm -lthreadpool -lrwlock -lbrm -lrowgroup -ljoiner -lcommon -lfuncexp -ldataconvert -loamcpp $(CLIBS) -lboost_idb -ludfsdk -lcppunit
GLIBS=$(CLIBS)
SRCS=\
aggregatecolumn.cpp \
arithmeticcolumn.cpp \
arithmeticoperator.cpp \
calpontexecutionplan.cpp \
calpontexecutionplanfactory.cpp \
calpontselectexecutionplan.cpp \
calpontsystemcatalog.cpp \
clientrotator.cpp \
constantcolumn.cpp \
constantfilter.cpp \
existsfilter.cpp \
expressionparser.cpp \
filter.cpp \
functioncolumn.cpp \
groupconcatcolumn.cpp \
intervalcolumn.cpp \
logicoperator.cpp \
mysqlexecutionplan.cpp \
objectidmanager.cpp \
objectreader.cpp \
operator.cpp \
oracleexecutionplan.cpp \
outerjoinonfilter.cpp \
predicateoperator.cpp \
pseudocolumn.cpp \
range.cpp \
returnedcolumn.cpp \
rowcolumn.cpp \
selectfilter.cpp \
sessionmanager.cpp \
simplecolumn.cpp \
simplefilter.cpp \
simplescalarfilter.cpp \
treenode.cpp \
treenodeimpl.cpp \
vendorexecutionplan.cpp \
windowfunctioncolumn.cpp
LINCLUDES=\
aggregatecolumn.h \
arithmeticcolumn.h \
arithmeticoperator.h \
blocksize.h \
calpontexecutionplanfactory.h \
calpontexecutionplan.h \
calpontselectexecutionplan.h \
calpontsystemcatalog.h \
clientrotator.h \
columnresult.h \
constantcolumn.h \
constantfilter.h \
existsfilter.h \
expressionparser.h \
exp_templates.h \
filter.h \
functioncolumn.h \
groupconcatcolumn.h \
intervalcolumn.h \
logicoperator.h \
mysqlexecutionplan.h \
njlcolumnresult.h \
objectidmanager.h \
objectreader.h \
operator.h \
oracleexecutionplan.h \
outerjoinonfilter.h \
parsetree.h \
predicateoperator.h \
pseudocolumn.h \
range.h \
returnedcolumn.h \
rowcolumn.h \
selectfilter.h \
sessionmanager.h \
simplecolumn.h \
simplecolumn_decimal.h \
simplecolumn_int.h \
simplecolumn_uint.h \
simplefilter.h \
simplescalarfilter.h \
treenode.h \
treenodeimpl.h \
vendorexecutionplan.h \
windowfunctioncolumn.h
OBJS=$(SRCS:.cpp=.o)
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -ljoblist -lbrm -loamcpp
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) -L$(EXPORT_ROOT)/lib -loamcpp
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) tdriver.o btdriver.o btdriver $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov* *.gcov tdriver-gcov *.d
rm -rf html
rm -f tdriver*.o tdriver*[0-9]
rm -f oidbitmap tdriver-oid tdriver-sm
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
btdriver: btdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
xtest: $(LIBRARY) tdriver
# -ipcs-pat -d >& /dev/null
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
# -ipcs-pat -d >& /dev/null
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage:
rm -f tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(MAKE) zcoverage
zcoverage: tdriver-gcov
rm -f *.gcda
-ipcs-pat -d >& /dev/null
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
-ipcs-pat -d >& /dev/null
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck:
xleakcheck: $(LIBRARY) tdriver
-ipcs-pat -d >& /dev/null
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
-ipcs-pat -d >& /dev/null
tdriver%.o: tdriver%.cpp
tdriver%: tdriver%.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
tdriver-oid.o: tdriver-oid.cpp
tdriver-oid: $(LIBRARY) tdriver-oid.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
tdriver-sm.o: tdriver-sm.cpp
tdriver-sm: $(LIBRARY) tdriver-sm.o
$(LINK.cpp) -o $@ $^ $(TLIBS) -lpthread
tdriver_fe.o: tdriver_fe.cpp
tdriver_fe: $(LIBRARY) tdriver_fe.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test1: $(LIBRARY) tdriver1
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver1
test2: $(LIBRARY) tdriver2
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver2
test3: $(LIBRARY) tdriver3
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver3
test4: $(LIBRARY) tdriver4
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver4
test5: $(LIBRARY) tdriver5
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver5
test6: $(LIBRARY) tdriver6
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver6
test7: $(LIBRARY) tdriver7
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver7
test8: $(LIBRARY) tdriver8
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver8
test9: $(LIBRARY) tdriver9
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver9
test10: $(LIBRARY) tdriver10
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver10
test11: $(LIBRARY) tdriver11
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver11
test12: $(LIBRARY) tdriver12
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver12
test13: $(LIBRARY) tdriver13
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver13
test14: $(LIBRARY) tdriver14
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver14
test15: $(LIBRARY) tdriver15
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver15
test16: $(LIBRARY) tdriver16
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver16
test17: $(LIBRARY) tdriver17
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver17
test18: $(LIBRARY) tdriver18
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver18
test19: $(LIBRARY) tdriver19
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver19
test20: $(LIBRARY) tdriver20
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver20
test21: $(LIBRARY) tdriver21
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver21
test22: $(LIBRARY) tdriver22
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver22
test23: $(LIBRARY) tdriver23
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver23
test-oid: $(LIBRARY) tdriver-oid
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-oid
test-sm: $(LIBRARY) tdriver-sm
-ipcs-pat -d >& /dev/null
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-sm
-ipcs-pat -d >& /dev/null
test-fe: $(LIBRARY) tdriver_fe.o
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver_fe
alltests: test test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 \
test11 test12 test13 test14 test15 test16 test17 test18 test19 \
test20 test21 test22 test23 test-oid test-sm
leakcheck1: $(LIBRARY) tdriver1
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver1
leakcheck2: $(LIBRARY) tdriver2
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver2
leakcheck3: $(LIBRARY) tdriver3
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver3
leakcheck4: $(LIBRARY) tdriver4
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver4
leakcheck5: $(LIBRARY) tdriver5
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver5
leakcheck6: $(LIBRARY) tdriver6
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver6
leakcheck7: $(LIBRARY) tdriver7
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver7
leakcheck8: $(LIBRARY) tdriver8
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver8
leakcheck9: $(LIBRARY) tdriver9
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver9
leakcheck10: $(LIBRARY) tdriver10
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver10
leakcheck11: $(LIBRARY) tdriver11
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver11
leakcheck12: $(LIBRARY) tdriver12
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver12
leakcheck13: $(LIBRARY) tdriver13
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver13
leakcheck14: $(LIBRARY) tdriver14
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver14
leakcheck15: $(LIBRARY) tdriver15
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver15
leakcheck16: $(LIBRARY) tdriver16
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver16
leakcheck17: $(LIBRARY) tdriver17
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver17
leakcheck18: $(LIBRARY) tdriver18
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver18
leakcheck19: $(LIBRARY) tdriver19
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver19
leakcheck20: $(LIBRARY) tdriver20
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver20
leakcheck21: $(LIBRARY) tdriver21
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver21
leakcheck22: $(LIBRARY) tdriver22
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver22
leakcheck23: $(LIBRARY) tdriver23
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver23
leakcheck-oid: $(LIBRARY) tdriver-oid
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-oid
leakcheck-sm: $(LIBRARY) tdriver-sm
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-sm
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
TDRIVERS=$(wildcard *tdriver*.cpp)
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) $(TDRIVERS:.cpp=.d)
endif

View File

@ -1,291 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 9550 2013-05-17 23:58:07Z xlou $
#
# Copyright (C) 2009-2013 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libjoblist.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
MYSQL_DIR=../../mariadb-columnstore-server
CPPFLAGS+= -I. -I$(EXPORT_ROOT)/include -I$(MYSQL_DIR)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic -fno-strict-aliasing $(JL_DEBUG_FLAGS)
#CXXFLAGS+=-DFIFO_SINK
# setup libraries for driver
DLIBS=-L. -ljoblist -lfuncexp -L$(CALPONT_LIBRARY_PATH) -lrt -lexecplan -lbrm
DLIBS+=-lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldmlpackageproc -ldmlpackage
DLIBS+=-lwriteengine -lloggingcpp -ldataconvert -lcppunit -ldl -ljoiner -lcommon
DLIBS+=-lcacheutils
DLIBS+=-lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -lnetsnmp \
-lnetsnmpmibs -lnetsnmphelpers -loamcpp -lrowgroup -lfuncexp -lmysqlcl_idb
DLIBS+=-lwindowfunction
#DLIBS=-L. -ljoblist -lfuncexp -L$(CALPONT_LIBRARY_PATH) -lexecplan -lbrm -lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldataconvert
ELIBS=-L. -ljoblist -lfuncexp -L$(CALPONT_LIBRARY_PATH) -lrt -lexecplan -lbrm
ELIBS+=-lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldmlpackageproc -ldmlpackage
ELIBS+=-lwriteengine -lloggingcpp -ldataconvert -ldl
ELIBS+=-lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -lnetsnmp \
-lnetsnmpmibs -lnetsnmphelpers -loamcpp -lfuncexp -lmysqlcl_idb
ELIBS+=-lwindowfunction
# setup libraries for tdriver
TLIBS=-L. -ljoblist -lfuncexp -L$(EXPORT_ROOT)/lib -lrt -lmysqlcl_idb
TLIBS+=-lmessageqcpp -lconfigcpp -lxml2 -lcppunit -ldl -lxml2
TLIBS+=-lexecplan -lm -lthreadpool -lloggingcpp -lrwlock -lbrm
TLIBS+=-ldmlpackageproc -ldmlpackage -lwriteengine -lloggingcpp -ldataconvert -lrowgroup
TLIBS+=-lwindowfunction
GLIBS=-L$(EXPORT_ROOT)/lib -lrt -lmessageqcpp -lconfigcpp -lxml2 -lcppunit
GLIBS+=-ldl -liberty -lxml2 -ldmlpackageproc -ldmlpackage -lwriteengine -lloggingcpp -ldataconvert -lfuncexp -lmysqlcl_idb
GLIBS+=-lwindowfunction
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lexecplan -lrowgroup -loamcpp -ljoiner -lquerystats -lcommon -lrt -lmysqlcl_idb -lwindowfunction
SRCS=\
anydatalist.cpp \
batchprimitiveprocessor-jl.cpp \
columncommand-jl.cpp \
command-jl.cpp \
crossenginestep.cpp \
dictstep-jl.cpp \
diskjoinstep.cpp \
distributedenginecomm.cpp \
elementtype.cpp \
expressionstep.cpp \
filtercommand-jl.cpp \
filterstep.cpp \
groupconcat.cpp \
jl_logger.cpp \
jlf_common.cpp \
jlf_execplantojoblist.cpp \
jlf_graphics.cpp \
jlf_tuplejoblist.cpp \
jlf_subquery.cpp \
joblist.cpp \
joblistfactory.cpp \
jobstep.cpp \
jobstepassociation.cpp \
lbidlist.cpp \
limitedorderby.cpp \
passthrucommand-jl.cpp \
passthrustep.cpp \
pcolscan.cpp \
pcolstep.cpp \
pdictionary.cpp \
pdictionaryscan.cpp \
primitivemsg.cpp \
pseudocc-jl.cpp \
resourcedistributor.cpp \
resourcemanager.cpp \
rowestimator.cpp \
rtscommand-jl.cpp \
subquerystep.cpp \
subquerytransformer.cpp \
tablecolumn.cpp \
timestamp.cpp \
tuple-bps.cpp \
tupleaggregatestep.cpp \
tupleannexstep.cpp \
tupleconstantstep.cpp \
tuplehashjoin.cpp \
tuplehavingstep.cpp \
tupleunion.cpp \
unique32generator.cpp \
virtualtable.cpp \
windowfunctionstep.cpp
LINCLUDES=\
bpp-jl.h \
distributedenginecomm.h \
elementtype.h \
errorinfo.h \
groupconcat.h \
jl_logger.h \
joblist.h \
joblistfactory.h \
joblisttypes.h \
jobstep.h \
lbidlist.h \
limitedorderby.h \
primitivemsg.h \
resourcedistributor.h \
resourcemanager.h \
rtscommand-jl.h \
tablecolumn.h \
threadsafequeue.h \
timeset.h \
timestamp.h \
unique32generator.h \
windowfunctionstep.h
DATALIST_SRC=\
datalist.h \
datalistimpl.h \
elementcompression.h \
fifo.h
TABLEBAND_SRC=\
tablecolumn.h \
tableband.h
DRIVERS=\
# tdriver-datalist.cpp \
# tdriver-tableband.cpp \
# tdriver-dec.cpp \
# tdriver1.cpp \
# tdriver2.cpp \
# tdriver-pdict.cpp \
# tdriver-jobstep.cpp \
# tdriver-hashjoin.cpp \
# tdriver-deliver.cpp \
# tdriver-index.cpp \
# tdriver-zdl.cpp \
# tdriver-bdl.cpp \
# tdriver-bru.cpp \
# tdriver-agg.cpp
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) $(LLIBS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(DATALIST_SRC) $(INSTALL_ROOT_INCLUDE)
clean-drivers:
rm -f tdriver*.o tdriver*[0-9] tdriver-datalist tdriver-dec tdriver-tableband tdriver-filter tdriver-jobstep
rm -f tdriver-pdict tdriver-hashjoin tdriver tdriver-gcov tdriver-index tdriver-function
clean: clean-drivers
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) core *~ *.tag *-gcov.* *.gcov *.d *.d.*
rm -rf html
rm -f LDL-* core.*
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
drivers: tdriver-datalist tdriver-dec tdriver1 tdriver2 tdriver-filter \
tdriver-hashjoin tdriver-function
tdriver-pdict: tdriver-pdict.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-dictscan: tdriver-dictscan.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-jobstep: tdriver-jobstep.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-datalist: tdriver-datalist.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-filter: tdriver-filter.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-function: tdriver-function.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-tableband: tdriver-tableband.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-dec: tdriver-dec.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver1: tdriver1.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver2: tdriver2.o
$(LINK.cpp) -o $@ $^ $(ELIBS) -lboost_idb -lcompress -ludfsdk -lcacheutils
tdriver-hashjoin: tdriver-hashjoin.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-deliver: tdriver-deliver.o
$(LINK.cpp) -o $@ $^ $(ELIBS)
fifo-bench: fifo-bench.o
$(LINK.cpp) -o $@ $^ $(ELIBS)
tdriver-index: tdriver-index.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-zdl: tdriver-zdl.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-bdl: tdriver-bdl.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-bru: tdriver-bru.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-agg: tdriver-agg.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
tdriver-rm: tdriver-rm.o
$(LINK.cpp) -o $@ $^ $(DLIBS)
test:
xtest: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck:
xleakcheck: tdriver-datalist tdriver-dec
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-datalist
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-dec --leakcheck
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-filter
leakcheck1: tdriver-deliver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-deliver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) $(DRIVERS:.cpp=.d)
endif

View File

@ -1,146 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 9744 2013-08-07 03:32:19Z bwilkinson $
#
# Copyright (C) 2009-2013 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
MYSQL_DIR=../../../mariadb-columnstore-server
#MYSQL_DIR=../../../mariadb
#MYSQL_DIR=../../../InfiniDB-MySQL
PROGRAM=libcalmysql.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
MYSQL_INCLUDE_DIRS=-I$(MYSQL_DIR)/include -I$(MYSQL_DIR)/sql -I$(MYSQL_DIR)/regex -I$(MYSQL_DIR)/pcre
CPPFLAGS+= -I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 $(MYSQL_INCLUDE_DIRS) -DMYSQL_DYNAMIC_PLUGIN
#only for debug builds
#CPPFLAGS+= -DSAFE_MUTEX -DINFINIDB_DEBUG -DDEBUG_WALK_COND -DDEBUG_SETENV
-include $(HOME)/IdbMySQLConnector.mak
NEW_DEBUG_FLAGS=$(shell echo "$(DEBUG_FLAGS)" | sed s/-flto//g)
CXXFLAGS+=$(NEW_DEBUG_FLAGS) -Wall -fpic
# setup libraries for driver
DLIBS=-L. -ljoblist -lfuncexp -L$(CALPONT_LIBRARY_PATH) -lrt -lexecplan -lbrm
DLIBS+=-lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldmlpackageproc -ldmlpackage
DLIBS+=-lwriteengine -lwriteengineclient -lidbdatafile -lloggingcpp -ldataconvert -lcompress -lcppunit -ldl
ELIBS=-L$(CALPONT_LIBRARY_PATH) -lddlpackageproc -lddlpackage
ELIBS+=-lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldmlpackageproc -ldmlpackage -lcompress
ELIBS+=-ljoblist -lfuncexp -ludfsdk -lwriteengine -lwriteengineclient -lidbdatafile -lbrm -lloggingcpp -ldataconvert -lexecplan
ELIBS+=-ljoiner -ldl -lrowgroup -lcacheutils
ELIBS+=-lquerystats -lquerytele -lthrift
ELIBS+=-lfuncexp -lsnmpmanager -lidbboot -lboost_idb -lpthread -lrt
# setup libraries for tdriver
TLIBS=-L. -ljoblist -lfuncexp -L$(EXPORT_ROOT)/lib -lrt
TLIBS+=-lmessageqcpp -lconfigcpp -lxml2 -lcppunit -ldl -lxml2
TLIBS+=-lexecplan -lm -lthreadpool -lloggingcpp -lrwlock -lbrm -lcompress
TLIBS+=-ldmlpackageproc -ldmlpackage -lwriteengine -lwriteengineclient -lidbdatafile -lloggingcpp -ldataconvert
GLIBS=-L$(EXPORT_ROOT)/lib -lrt -lmessageqcpp -lconfigcpp -lxml2 -lcppunit
GLIBS+=-ldl -liberty -lxml2 -ldmlpackageproc -ldmlpackage -lwriteengine -lwriteengineclient -lidbdatafile -lloggingcpp -ldataconvert
SRCS=ha_calpont.cpp ha_calpont_impl.cpp ha_calpont_dml.cpp ha_calpont_ddl.cpp \
ha_calpont_execplan.cpp ha_scalar_sub.cpp ha_in_sub.cpp ha_exists_sub.cpp ha_from_sub.cpp ha_select_sub.cpp \
ha_view.cpp sm.cpp ha_window_function.cpp ha_calpont_partition.cpp ha_pseudocolumn.cpp
DRIVERS=tdriver1.cpp
LINCLUDES=idb_mysql.h
MYSQLSCRIPTS=syscatalog_mysql.sql \
dumpcat_mysql.sql \
dumpcat.pl \
calsetuserpriority.sql \
calremoveuserpriority.sql \
calshowprocesslist.sql \
OBJS=$(SRCS:.cpp=.o)
all: $(LIBRARY)
ha_calpont.o: ha_calpont.cpp
$(COMPILE.cpp) -fno-rtti -fno-implicit-templates -o ha_calpont.o ha_calpont.cpp
$(LIBRARY): $(OBJS)
$(MAKE) -C ../ddlpackageproc install
$(MAKE) -C ../ddlpackage install
$(MAKE) -C ../dmlpackageproc install
$(MAKE) -C ../dmlpackage install
$(MAKE) -C ../joblist install
$(MAKE) -C ../execplan install
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) $(ELIBS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE) $(INSTALL_ROOT_MYSQL); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB); \
$(INSTALL) $(MYSQLSCRIPTS) $(INSTALL_ROOT_MYSQL);
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY)
rm -f core *~ *.tag *-gcov.* *.gcov *.d *.d.*
rm -rf html
rm -f LDL-* core.*
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
test:
xtest: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck:
xleakcheck: tdriver-datalist tdriver-dec
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-datalist
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-dec --leakcheck
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-filter
tdriver1: tdriver1.o
$(LINK.cpp) -o tdriver1 tdriver1.o
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) $(DRIVERS:.cpp=.d)
endif

View File

@ -1,91 +0,0 @@
include ../rules.mak
#******************************************************************************************
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=DDLProc
VERSION=1.0.0
# List all the source files here
SRCS=ddlproc.cpp ddlprocessor.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) -lthreadpool $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
-include $(SRCS:.cpp=.d)

View File

@ -1,85 +0,0 @@
include ../rules.mak
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=DecomSvr
VERSION=1.0.0
# List all the source files here
SRCS=server.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lboost_idb -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -lrt
.PHONY: install clean test docs coverage leakcheck
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS) quicklz.o
$(LINK.cpp) -o $@ $^
install: $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag quicklz.o cli.o
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
cli: cli.o
$(LINK.cpp) -o $@ $^
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
test:
xtest run: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,91 +0,0 @@
include ../rules.mak
#******************************************************************************************
#
# $Id: Makefile 778 2012-06-15 15:24:24Z bpaul $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=DMLProc
VERSION=1.0.0
# List all the source files here
SRCS=dmlproc.cpp dmlprocessor.cpp dmlresultbuffer.cpp batchinsertprocessor.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) -lthreadpool -lddlcleanuputil -lbatchloader $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck
GLIBS=-lcppunit -ldl -lbatchloader
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
-include $(SRCS:.cpp=.d)

View File

@ -1,87 +0,0 @@
include ../rules.mak
#******************************************************************************************
# $Id: Makefile 852 2012-07-19 00:51:10Z zzhu $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=ExeMgr
VERSION=1.0.0
# List all the source files here
SRCS=main.cpp activestatementcounter.cpp femsghandler.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) -lcacheutils -lthreadpool $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
.PHONY: install clean test docs FORCE coverage leakcheck
GLIBS=-lcppunit -ldl -lquerystats
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
sender: sender.o
$(LINK.cpp) $(LIBS) -o $@ $^
install: $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
test:
xtest run: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

7574
libtool~

File diff suppressed because it is too large Load Diff

View File

@ -1,23 +0,0 @@
include ../rules.mak
#******************************************************************************************
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
TARGETS = bootstrap clean install test docs coverage leakcheck
.PHONY: all $(TARGETS)
all:
$(MAKE) -C etc
$(MAKE) -C post
$(MAKE) -C oamcpp
$(MAKE) -C install_scripts
$(MAKE) -C cloud
$(TARGETS):
$(MAKE) -C etc $@
$(MAKE) -C post $@
$(MAKE) -C oamcpp $@
$(MAKE) -C install_scripts $@
$(MAKE) -C cloud $@

View File

@ -1,36 +0,0 @@
include ../../rules.mak
#******************************************************************************************
#
# $Id: Makefile 2646 2012-01-06 18:47:12Z dhill $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
SCRIPTS=IDBInstanceCmds.sh IDBVolumeCmds.sh
bootstrap:
umask 002; \
mkdir -p $(INSTALL_ROOT_BIN); \
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
rm -f $(SCRIPTS); \
popd >/dev/null; \
$(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_BIN)
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
chmod -f 555 $(SCRIPTS); \
popd >/dev/null
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *.tag *.d *.d.*
install: bootstrap
test:
docs:
coverage:
leakcheck:

View File

@ -1,34 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
LETC=AlarmConfig.xml Calpont.xml ProcessConfig.xml ConsoleCmds.xml Calpont.xml.singleserver ProcessConfig.xml.singleserver
bootstrap:
umask 002; \
mkdir -p $(INSTALL_ROOT_ETC); \
pushd $(INSTALL_ROOT_ETC) >/dev/null; \
rm -f $(LETC); \
popd >/dev/null; \
$(INSTALL) $(LETC) $(INSTALL_ROOT_ETC)
pushd $(INSTALL_ROOT_ETC) >/dev/null; \
chmod -f 666 $(LETC); \
popd >/dev/null
mkdir -p $(INSTALL_ROOT_LOCAL)
install: bootstrap
clean:
rm -f *~
test:
docs:
coverage:
leakcheck:

View File

@ -1,57 +0,0 @@
include ../../rules.mak
#******************************************************************************************
#
# $Id: Makefile 3250 2012-09-26 17:44:13Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
SCRIPTS=post-install pre-uninstall remote_command.sh \
columnstoreLogRotate transactionLog transactionLogArchiver.sh system_installer.sh \
module_installer.sh startupTests.sh \
user_installer.sh performance_installer.sh \
remote_scp_get.sh columnstoreAlias run.sh upgrade-columnstore.sh \
post-mysql-install post-mysqld-install binary_installer.sh \
os_check.sh columnstore columnstoreSyslog columnstoreSyslog-ng syslogSetup.sh \
remote_scp_put.sh columnstoreUninstall.sh columnstore.def \
remotessh.exp master-rep-columnstore.sh slave-rep-columnstore.sh rsync.sh \
myCnf-include-args.text myCnf-exclude-args.text remote_command_verify.sh \
columnstoreSyslog7 disable-rep-columnstore.sh columnstore.conf
LOCAL=module
bootstrap:
umask 002; \
mkdir -p $(INSTALL_ROOT_BIN); \
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
rm -f $(SCRIPTS); \
popd >/dev/null; \
$(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_BIN)
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
chmod -f 555 $(SCRIPTS); \
popd >/dev/null
umask 002; \
mkdir -p $(INSTALL_ROOT_LOCAL); \
pushd $(INSTALL_ROOT_LOCAL) >/dev/null; \
rm -f $(LOCAL); \
popd >/dev/null; \
$(INSTALL) $(LOCAL) $(INSTALL_ROOT_LOCAL)
pushd $(INSTALL_ROOT_LOCAL) >/dev/null; \
chmod -f 555 $(LOCAL); \
popd >/dev/null
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *.tag *.d *.d.*
install: bootstrap
test:
docs:
coverage:
leakcheck:

View File

@ -1,87 +0,0 @@
#******************************************************************************************
# $Id: Makefile 2827 2012-04-04 18:19:32Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=liboamcpp.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
CLIBS=-L$(EXPORT_ROOT)/lib -loamcpp -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -L/usr/local/MariaDB/Columnstore/lib -lnetsnmp -lnetsnmphelpers -lcppunit -ldl -lrpm -lrwlock -lbrm
TLIBS=-L. -loamcpp $(CLIBS)
GLIBS=$(CLIBS)
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lsnmpmanager
SRCS=liboamcpp.cpp oamcache.cpp
LINCLUDES=liboamcpp.h oamcache.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
$(INSTALL) ../../build/releasenum $(CALPONT_INSTALL_ROOT)
$(INSTALL) COPYING $(CALPONT_INSTALL_ROOT)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* tdriver.output
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(MAKE) -C ../../versioning/BRM install
$(LINK.cpp) -o $@ $^ $(TLIBS)
test: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage: tdriver-gcov
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
# for file in $(SRCS); do \
# bfile=`basename $$file .cpp`; \
# gcov -o $${bfile}-gcov $$file >/dev/null; \
# done
# /usr/local/bin/genCoverage.pl $(SRCS)
leakcheck: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,38 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 2827 2012-04-04 18:19:32Z rdempsey $
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
SCRIPTS=functions \
test-001.sh \
test-002.sh \
test-003.sh \
test-004.sh
bootstrap:
umask 002; \
mkdir -p $(INSTALL_ROOT_POST); \
pushd $(INSTALL_ROOT_POST) >/dev/null; \
rm -f $(SCRIPTS); \
popd >/dev/null; \
$(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_POST)
pushd $(INSTALL_ROOT_POST) >/dev/null; \
chmod -f 555 $(SCRIPTS); \
popd >/dev/null
clean:
rm -f *~
install: bootstrap
test:
docs:
coverage:
leakcheck:

View File

@ -1,71 +0,0 @@
#******************************************************************************************
# $Id: Makefile 389 2007-03-22 22:56:03Z wweeks $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libreplaytxnlog.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib -loamcpp -lmessageqcpp -lloggingcpp -loamcpp -lconfigcpp -lxml2 -lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -L/usr/local/MariaDB/Columnstore/lib -lnetsnmp -lnetsnmphelpers -lcppunit -ldl -lrwlock -lbrm
TLIBS=-L. -loamcpp $(CLIBS)
GLIBS=$(CLIBS)
LLIBS=-L$(CALPONT_LIBRARY_PATH) -loamcpp -lexecplan
SRCS=replaytxnlog.cpp
LINCLUDES=replaytxnlog.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) $(PROGRAM) $(LIBRARY) core *~ *.tag *-gcov.* *.gcov *.d *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver:
test:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov:
leakcheck:
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,27 +0,0 @@
include ../rules.mak
#******************************************************************************************
# $Id: Makefile 3121 2013-06-26 15:31:13Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
TARGETS = bootstrap clean test docs coverage leakcheck install
.PHONY: all $(TARGETS)
all:
$(MAKE) -C mcsadmin
$(MAKE) -C traphandler
$(MAKE) -C serverMonitor
$(MAKE) -C postConfigure
$(MAKE) -C columnstoreDB
$(MAKE) -C sendtrap
$(MAKE) -C columnstoreSupport
$(TARGETS):
$(MAKE) -C mcsadmin $@
$(MAKE) -C traphandler $@
$(MAKE) -C serverMonitor $@
$(MAKE) -C postConfigure $@
$(MAKE) -C columnstoreDB $@
$(MAKE) -C sendtrap $@
$(MAKE) -C columnstoreSupport $@

View File

@ -1,83 +0,0 @@
#******************************************************************************************
# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
# The name of the executable
PROGRAM=calpontConsole
VERSION=1.0.0
# List all the source files here
SRCS=calpontConsole.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
# we need to add some search paths here because on a boostrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-L/usr/local/lib -lcppunit -ldl
GLIBS=$(CLIBS)
.PHONY: install clean test docs FORCE coverage leakcheck
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* tdriver.output
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test: $(LIBRARY) tdriver
rm -f /var/log/Columnstore/uiCommands.log
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: calpontConsole-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
leakcheck: $(LIBRARY) tdriver
rm -f /var/log/Columnstore/uiCommands.log
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,63 +0,0 @@
#******************************************************************************************
# $Id: Makefile 203 2007-04-04 20:30:53Z jrodriguez $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean docs test coverage leakcheck
PROGRAM=calpontDBWrite
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -D_DEBUG
# we need to add some search paths here because on a bootstrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
SRCS=calpontDB.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,61 +0,0 @@
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
SCRIPTS=hardwareReport.sh softwareReport.sh configReport.sh logReport.sh resourceReport.sh alarmReport.sh bulklogReport.sh hadoopReport.sh
PROGRAM=calpontSupport
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
SRCS=calpontSupport.cpp
OBJS=$(SRCS:.cpp=.o)
all: $(PROGRAM)
$(PROGRAM): calpontSupport.o
$(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo
install: bootstrap $(PROGRAM)
umask 002; \
mkdir -p $(INSTALL_ROOT_BIN)
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
rm -f $(SCRIPTS); \
popd >/dev/null; \
$(INSTALL) $(PROGRAM) $(SCRIPTS) $(INSTALL_ROOT_BIN)
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
chmod -f 755 $(PROGRAM) $(SCRIPTS); \
popd >/dev/null
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.*
rm -rf html
docs:
tdriver:
test:
coverage:
leakcheck:
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,64 +0,0 @@
#!/bin/bash
#
# $Id: hardwareReport.sh 421 2007-04-05 15:46:55Z dhill $
#
if [ $1 ] ; then
MODULE=$1
else
MODULE="pm1"
fi
if [ $2 ] ; then
INSTALLDIR=$2
else
INSTALLDIR="/usr/local/MariaDB/Columnstore"
fi
if [ $USER = "root" ]; then
SUDO=" "
else
SUDO="sudo"
fi
$SUDO rm -f /tmp/${MODULE}_configReport.txt
{
echo " "
echo "******************** Configuration/Status Report for ${MODULE} ********************"
echo " "
if test -f /sbin/chkconfig ; then
echo "-- chkconfig configuration --"
echo " "
echo "################# /sbin/chkconfig --list | grep infinidb #################"
echo " "
$SUDO /sbin/chkconfig --list | grep infinidb 2>/dev/null
echo "################# /sbin/chkconfig --list | grep mysql-Calpont #################"
echo " "
$SUDO /sbin/chkconfig --list | grep mysql-Calpont 2>/dev/null
fi
echo " "
echo "-- fstab Configuration --"
echo " "
echo "################# cat /etc/fstab #################"
echo " "
$SUDO cat /etc/fstab 2>/dev/null
echo " "
echo "-- Server Processes --"
echo " "
echo "################# ps axu #################"
echo " "
$SUDO ps axu
echo " "
echo "-- Server Processes with resource usage --"
echo " "
echo "################# top -b -n 1 #################"
echo " "
$SUDO top -b -n 1
} > /tmp/${MODULE}_configReport.txt
exit 0

View File

@ -1,63 +0,0 @@
#******************************************************************************************
# $Id: Makefile 203 2007-04-04 20:30:53Z jrodriguez $
#
# Copyright (C) 2009-2012 Columnstore Corporation
# All rights reserved
#
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean docs test coverage leakcheck
PROGRAM=columnstoreDBWrite
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -D_DEBUG
# we need to add some search paths here because on a bootstrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
SRCS=columnstoreDB.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,61 +0,0 @@
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Columnstore Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
SCRIPTS=hardwareReport.sh softwareReport.sh configReport.sh logReport.sh resourceReport.sh alarmReport.sh bulklogReport.sh hadoopReport.sh
PROGRAM=columnstoreSupport
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
SRCS=columnstoreSupport.cpp
OBJS=$(SRCS:.cpp=.o)
all: $(PROGRAM)
$(PROGRAM): columnstoreSupport.o
$(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo
install: bootstrap $(PROGRAM)
umask 002; \
mkdir -p $(INSTALL_ROOT_BIN)
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
rm -f $(SCRIPTS); \
popd >/dev/null; \
$(INSTALL) $(PROGRAM) $(SCRIPTS) $(INSTALL_ROOT_BIN)
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
chmod -f 755 $(PROGRAM) $(SCRIPTS); \
popd >/dev/null
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.*
rm -rf html
docs:
tdriver:
test:
coverage:
leakcheck:
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,56 +0,0 @@
#******************************************************************************************
# $Id: Makefile 33 2006-09-29 13:45:51Z dhill $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
# Author: Zhixuan Zhu
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=HardwareMonitor
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# we need to add some search paths here because on a boostrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L$(EXPORT_ROOT)/lib -lloggingcpp -lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -lnetsnmp \
-lnetsnmpmibs -lnetsnmphelpers -loamcpp -lmessageqcpp -lconfigcpp -lboost_filesystem -lssl -lxml2 -ldl
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
LD_LIBRARY_PATH=
SRCS=hardwareMonitor.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
install:
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,83 +0,0 @@
:******************************************************************************************
# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
# The name of the executable
PROGRAM=mcsadmin
VERSION=1.0.0
# List all the source files here
SRCS=mcsadmin.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
# we need to add some search paths here because on a boostrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-L/usr/local/lib -lcppunit -ldl
GLIBS=$(CLIBS)
.PHONY: install clean test docs FORCE coverage leakcheck
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* tdriver.output
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test: $(LIBRARY) tdriver
rm -f /var/log/Columnstore/uiCommands.log
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: mcsadmin-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
leakcheck: $(LIBRARY) tdriver
rm -f /var/log/Columnstore/uiCommands.log
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,89 +0,0 @@
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PPROGRAM=postConfigure
IPROGRAM=installer
APROGRAM=patchInstaller
ZPROGRAM=amazonInstaller
MPROGRAM=mycnfUpgrade
GPROGRAM=getMySQLpw
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
SRCS=helpers.cpp postConfigure.cpp installer.cpp patchInstaller.cpp queryStats.cpp amazonInstaller.cpp mycnfUpgrade.cpp getMySQLpw.cpp
OBJS=$(SRCS:.cpp=.o)
all: $(PPROGRAM) $(IPROGRAM) $(APROGRAM) $(ZPROGRAM) $(MPROGRAM) $(GPROGRAM)
$(PPROGRAM): postConfigure.o helpers.o
$(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo
$(IPROGRAM): installer.o helpers.o
$(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo
$(APROGRAM): patchInstaller.o
$(LINK.cpp) -o $@ $^
$(ZPROGRAM): amazonInstaller.o helpers.o
$(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo
$(MPROGRAM): mycnfUpgrade.o
$(LINK.cpp) -o $@ $^
$(GPROGRAM): getMySQLpw.o
$(LINK.cpp) -o $@ $^
install: bootstrap $(PPROGRAM) $(IPROGRAM) $(APROGRAM) $(ZPROGRAM) $(MPROGRAM) $(GPROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PPROGRAM) $(IPROGRAM) $(APROGRAM) $(ZPROGRAM) $(MPROGRAM) $(GPROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PPROGRAM) $(IPROGRAM) $(APROGRAM) $(ZPROGRAM) $(MPROGRAM) $(GPROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: postConfigure-gcov.o $(subst .o,-gcov.o,postConfigure.o)
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
leakcheck:
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,72 +0,0 @@
#******************************************************************************************
# $Id: Makefile 203 2007-04-04 20:30:53Z jrodriguez $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean docs test coverage leakcheck
PROGRAM=ReplayTransactionLog
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -D_DEBUG
# we need to add some search paths here because on a bootstrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) -lreplaytxnlog $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
SRCS=replaytransactionlog.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
#test: $(LIBRARY) tdriver
# -ipcs-pat -d >& /dev/null
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
# -ipcs-pat -d >& /dev/null
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: sessionwalker-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
leakcheck: tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,82 +0,0 @@
#******************************************************************************************
# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
# Author: Zhixuan Zhu
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=resourceMonitor
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# we need to add some search paths here because on a boostrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib -loamcpp -lmessageqcpp -lconfigcpp \
-lxml2 -lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers \
-lboost_filesystem -lloggingcpp
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
LD_LIBRARY_PATH=
SRCS=resourceMonitor.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
install:
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test: $(LIBRARY) tdriver
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./resourceMonitor
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: resourceMonitor-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage: tdriver-gcov
# rm -f *.gcda
# rm -f /var/log/Columnstore/cpu*.log
# LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
# for file in $(SRCS); do \
# bfile=`basename $$file .cpp`; \
# gcov -o $${bfile}-gcov $$file >/dev/null; \
# done
# /usr/local/bin/genCoverage.pl $(SRCS)
leakcheck: $(LIBRARY) tdriver
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./resourceMonitor
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,84 +0,0 @@
#******************************************************************************************
# $Id: Makefile 1652 2010-08-19 18:23:27Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
# Author: Zhixuan Zhu
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=sendtrap
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# we need to add some search paths here because on a boostrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
SRCS=sendtrap.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test: $(LIBRARY) tdriver
rm -f /var/log/Columnstore/activeAlarms
rm -f /var/log/Columnstore/alarm.log
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./sendtrap processAlarm < ./test.txt
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: sendtrap-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage: tdriver-gcov
rm -f *.gcda
rm -f /var/log/Columnstore/activeAlarms
rm -f /var/log/Columnstore/alarm.log
# LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov processAlarm < ./test.txt
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck: $(LIBRARY) tdriver
rm -f /var/log/Columnstore/activeAlarms
rm -f /var/log/Columnstore/alarm.log
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,56 +0,0 @@
#******************************************************************************************
# $Id: Makefile 33 2006-09-29 13:45:51Z dhill $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
# Author: David Hill
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=ServerMonitor
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# we need to add some search paths here because on a boostrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
SRCS=main.cpp serverMonitor.cpp cpuMonitor.cpp diskMonitor.cpp \
memoryMonitor.cpp procmonMonitor.cpp msgProcessor.cpp dbhealthMonitor.cpp \
UMAutoSync.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,76 +0,0 @@
#******************************************************************************************
# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean docs test coverage leakcheck
PROGRAM=sessionWalker
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# we need to add some search paths here because on a boostrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_WRITE_LIBS)
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
OAMLIBS=-loamcpp -lsnmpmanager -lnetsnmp \
-lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs
LDFLAGS+=$(CLIBS) $(OAMLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
SRCS=sessionwalker.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) $(LIBS) -o $@ $^
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
#test: $(LIBRARY) tdriver
# -ipcs-pat -d >& /dev/null
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
# -ipcs-pat -d >& /dev/null
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: sessionwalker-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage: tdriver-gcov
leakcheck: tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,84 +0,0 @@
#******************************************************************************************
# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
# Author: Zhixuan Zhu
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=trapHandler
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# we need to add some search paths here because on a boostrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
SRCS=trapHandler.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test: $(LIBRARY) tdriver
rm -f /var/log/Columnstore/activeAlarms
rm -f /var/log/Columnstore/alarm.log
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./trapHandler processAlarm < ./test.txt
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: trapHandler-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage: tdriver-gcov
rm -f *.gcda
rm -f /var/log/Columnstore/activeAlarms
rm -f /var/log/Columnstore/alarm.log
# LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov processAlarm < ./test.txt
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck: $(LIBRARY) tdriver
rm -f /var/log/Columnstore/activeAlarms
rm -f /var/log/Columnstore/alarm.log
# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,28 +0,0 @@
include ../rules.mak
#******************************************************************************************
# $Id: Makefile 91 2006-10-05 16:04:58Z pleblanc $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
TARGETS = bootstrap clean test docs coverage leakcheck install
.PHONY: $(TARGETS)
# If we've got optimization on (-O3), crank it up further...
#ifneq (,$(findstring -O3,$(DEBUG_FLAGS)))
#EXTRA=EXTRA_FLAGS="-finline-limit=1800 -fgcse-sm -fgcse-las -fgcse-after-reload -funsafe-loop-optimizations"
#else
EXTRA=EXTRA_FLAGS=
#endif
all:
$(MAKE) -C blockcache $(EXTRA)
$(MAKE) -C linux-port $(EXTRA)
$(MAKE) -C primproc $(EXTRA)
$(TARGETS):
$(MAKE) -C blockcache $(EXTRA) $@
$(MAKE) -C linux-port $(EXTRA) $@
$(MAKE) -C primproc $(EXTRA) $@

View File

@ -1,108 +0,0 @@
include ../../rules.mak
#******************************************************************************************
#
# $Id: Makefile 1855 2012-04-04 18:20:09Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs FORCE coverage leakcheck lport-install bootstrap
# The name of the executable
LIBRARY=libdbbc.a
# List all the source files here
SRCS=\
blockcacheclient.cpp \
blockrequestprocessor.cpp \
fileblockrequestqueue.cpp \
filebuffer.cpp \
filebuffermgr.cpp \
filerequest.cpp \
iomanager.cpp \
stats.cpp \
fsutils.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -I../primproc
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall $(EXTRA_FLAGS)
# Linker flags
LDFLAGS+=-L. -L$(CALPONT_LIBRARY_PATH)
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
TLIBS=-lpthread -lwriteengine -lbrm -lrwlock -lmessageqcpp \
-ldl -lconfigcpp -lxml2 -lloggingcpp -ldbbc
GLIBS=-lpthread -lwriteengine -lbrm -lrwlock -lmessageqcpp \
-ldl -lconfigcpp -lxml2 -lloggingcpp
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(AR) scru $(LIBRARY) $(OBJS)
bootstrap:
install: bootstrap $(LIBRARY)
clean:
rm -f $(OBJS) core *~ *-gcov.* *.gcov *.d config.tag *.d.* $(LIBRARY)
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
coverage:
zcoverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
test:
# use -DXTEST flag for manual testing
xtest:
# CXXFLAGS+=$(CXXFLAGS) -DXTEST
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./bcTest 10 1000
leakcheck:
xleakcheck:
xleakcheck: bcTest
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./bcTest 2 10 32768
tdriver: tdriver.cpp $(LIBRARY)
$(LINK.cpp) -o $@ $^ $(TLIBS)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
bcTest: bcTest.cpp $(LIBRARY)
$(LINK.cpp) -o $@ $^ $(TLIBS)
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,136 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 2097 2013-05-15 16:48:20Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
LIBRARY=libprocessor.a
CPPFLAGS=-I../blockcache -I../primproc -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -DPRIM_DEBUG
CXXFLAGS+=$(DEBUG_FLAGS) -Wall $(EXTRA_FLAGS)
CLIBS=-L$(EXPORT_ROOT)/lib -lconfigcpp -lxml2
TLIBS=$(CLIBS) -lcppunit -ldl -lloggingcpp
GLIBS=$(CLIBS)
SRCS=\
primitiveprocessor.cpp \
dictionary.cpp \
column.cpp
LINCLUDES=\
primitiveprocessor.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(AR) scru $(LIBRARY) $(OBJS)
install: bootstrap $(LIBRARY)
bootstrap:
clean:
rm -rf $(LIBRARY) $(OBJS) tdriver \
*~ *.o *.d* *-gcov* *.gcov FILE233.cdf \
html config.tag print_indextree_subblock print_dictblock \
col{1,2,4,8}block.cdf \
col8block_{neg,overflow,overflow_neg}.cdf \
col_double_block.cdf col_float_block.cdf col_neg_double.cdf \
col_neg_float.cdf
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
print_indextree_subblock: print_indextree_subblock.cpp
g++ -o print_indextree_subblock $^ $(CPPFLAGS) $(CXXFLAGS) $(TLIBS)
print_dictblock: print_dictblock.cpp
g++ -o print_dictblock $^ $(CPPFLAGS) $(CXXFLAGS) $(TLIBS)
print_indexlist: print_indexlist.cpp
g++ -o print_indexlist $^ $(CPPFLAGS) $(CXXFLAGS) $(TLIBS)
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
xtest: $(LIBRARY) tdriver
cat FILE_990.bz2 | bunzip2 > FILE_990.dat
cat FILE_991.bz2 | bunzip2 > FILE_991.dat
cat FILE233.bz2 | bunzip2 > FILE233.cdf
tar zxf colblocks.tar.gz
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
rm col{1,2,4,8}block.cdf
rm col8block_{neg,overflow,overflow_neg}.cdf
rm col_double_block.cdf col_float_block.cdf
rm col_neg_double.cdf col_neg_float.cdf
rm FILE_990.dat
rm FILE_991.dat
rm FILE233.cdf
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(TLIBS)
coverage:
xcoverage:
cat FILE_990.bz2 | bunzip2 > FILE_990.dat
cat FILE_991.bz2 | bunzip2 > FILE_991.dat
cat FILE233.bz2 | bunzip2 > FILE233.cdf
tar zxf colblocks.tar.gz
rm -f tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(MAKE) zcoverage
rm col{1,2,4,8}block.cdf
rm col8block_{neg,overflow,overflow_neg}.cdf
rm FILE_990.dat
rm FILE_991.dat
rm FILE233.cdf
zcoverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck:
xleakcheck: $(LIBRARY) tdriver
cat FILE_990.bz2 | bunzip2 > FILE_990.dat
cat FILE_991.bz2 | bunzip2 > FILE_991.dat
cat FILE233.bz2 | bunzip2 > FILE233.cdf
tar zxf colblocks.tar.gz
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
rm col{1,2,4,8}block.cdf
rm col8block_{neg,overflow,overflow_neg}.cdf
rm FILE_990.dat
rm FILE_991.dat
rm FILE233.cdf
tdriver%.o: tdriver%.cpp
tdriver%: tdriver%.o
$(LINK.cpp) -o $@ $^ $(TLIBS) -liberty
alltests: test
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,129 +0,0 @@
include ../../rules.mak
#******************************************************************************************
#
# $Id: Makefile 2142 2013-08-07 03:34:03Z bwilkinson $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=PrimProc
VERSION=1.0.0
# List all the source files here
SRCS=primproc.cpp \
batchprimitiveprocessor.cpp \
bppseeder.cpp \
bppsendthread.cpp \
columncommand.cpp \
command.cpp \
dictstep.cpp \
filtercommand.cpp \
logger.cpp \
passthrucommand.cpp \
primitiveserver.cpp \
pseudocc.cpp \
rtscommand.cpp \
umsocketselector.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I. -I../blockcache -I../linux-port -I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
NEW_DEBUG_FLAGS=$(shell echo "$(DEBUG_FLAGS)" | sed s/-flto//g)
CXXFLAGS+=$(NEW_DEBUG_FLAGS) -Wall $(EXTRA_FLAGS)
OAMLIBS=-loamcpp -lsnmpmanager -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) -lthreadpool -lwriteengine \
-lidbdatafile -lcacheutils $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck lport-install bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
.PHONY: bc-install lport-install
all: $(PROGRAM)
../blockcache/libdbbc.a: bc-install
../linux-port/libprocessor.a: lport-install
$(PROGRAM): ../blockcache/libdbbc.a ../linux-port/libprocessor.a $(OBJS)
$(LINK.cpp) -o $@ $(OBJS) ../blockcache/libdbbc.a ../linux-port/libprocessor.a
bc-install:
$(MAKE) -C ../blockcache install
lport-install:
$(MAKE) -C ../linux-port install
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^
tdriver-umsocksel: tdriver-umsocksel.o umsocketselector.o
$(LINK.cpp) -o $@ $^
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,85 +0,0 @@
#******************************************************************************************
# $Id: Makefile 1939 2012-10-03 15:10:20Z dhill $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../rules.mak
# The name of the executable
PROGRAM=ProcMgr
VERSION=1.0.0
# List all the source files here
SRCS=main.cpp processmanager.cpp
LINCLUDES=processmanager.h
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L../oamcpp -L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -lcacheutils -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
.PHONY: install clean test docs FORCE coverage leakcheck
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
test:
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,81 +0,0 @@
include ../rules.mak
#******************************************************************************************
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=ProcMon
VERSION=1.0.0
# List all the source files here
SRCS=main.cpp processmonitor.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
.PHONY: install clean test docs FORCE coverage leakcheck
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d *.d.* config.tag
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
test:
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
-include $(SRCS:.cpp=.d)

View File

@ -1,67 +0,0 @@
SHELL=/bin/bash
ifeq (,$(findstring /root,${PWD}))
TOP=$(shell pwd | cut -d / -f 1,2,3,4)
else
TOP=$(shell pwd | cut -d / -f 1,2,3)
endif
EXPORT_ROOT=$(TOP)/export
INSTALL=cp --preserve=timestamps
CALPONT_INSTALL_ROOT=$(EXPORT_ROOT)
INSTALL_ROOT=$(CALPONT_INSTALL_ROOT)
INSTALL_ROOT_INCLUDE=$(INSTALL_ROOT)/include
INSTALL_ROOT_LIB=$(INSTALL_ROOT)/lib
INSTALL_ROOT_BIN=$(INSTALL_ROOT)/bin
INSTALL_ROOT_ETC=$(INSTALL_ROOT)/etc
INSTALL_ROOT_POST=$(INSTALL_ROOT)/post
INSTALL_ROOT_LOCAL=$(INSTALL_ROOT)/local
INSTALL_ROOT_MYSQL=$(INSTALL_ROOT)/mysql
INSTALL_ROOT_TOOLS=$(INSTALL_ROOT)/tools
INSTALL_ROOT_DATDUP=$(INSTALL_ROOT)/gluster
INSTALL_MIB=$(INSTALL_ROOT)/share/snmp/mibs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
CALPONT_INCLUDE_PATH=$(EXPORT_ROOT)/include
IDB_COMMON_LIBS=-lwindowfunction -ljoblist -lexecplan -ljoiner -lrowgroup -lfuncexp -ludfsdk \
-loamcpp -lsnmpmanager -ldataconvert -lbrm -lcacheutils -lmessageqcpp -lloggingcpp -lconfigcpp -lrwlock \
-lcommon -lcompress -lxml2 -lidbboot -lboost_idb -lmysqlcl_idb -lquerystats -lidbdatafile -lquerytele \
-lthrift -lpthread -lrt
IDB_WRITE_LIBS=-lddlpackageproc -lddlpackage -ldmlpackageproc -ldmlpackage -lwriteengine -lwriteengineclient -lcompress -lcacheutils
IDB_SNMP_LIBS=-lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers
LDFLAGS=-Wl,--no-as-needed
DEBUG_FLAGS=-ggdb3 -fno-tree-vectorize -DSAFE_MUTEX -DSAFEMALLOC
#DEBUG_FLAGS=-g0 -O3 -fno-strict-aliasing -fno-tree-vectorize -DDBUG_OFF
#DEBUG_FLAGS+=-DVALGRIND
#DEBUG_FLAGS+=-DSKIP_OAM_INIT
ifeq (i686,$(shell uname -m))
DEBUG_FLAGS+=-march=pentium4
else ifeq (x86_64,$(shell uname -m))
ifeq (opteron,$(shell egrep -qs Opteron /proc/cpuinfo && echo 'opteron'))
DEBUG_FLAGS+=-march=opteron
endif
endif
ifeq (4.5,$(shell test -x /usr/local/gcc45/bin/gcc && /usr/local/gcc45/bin/gcc --version | awk '/^gcc/ {print $$3}' | cut -c1-3))
export LD_LIBRARY_PATH=/usr/local/gcc45/lib64:/usr/local/gmp43/lib:/usr/local/mpfr24/lib:/usr/local/mpc08/lib
export PATH=/usr/local/gcc45/bin:/usr/local/bin:/bin:/usr/bin
CC=/usr/local/gcc45/bin/gcc
CXX=/usr/local/gcc45/bin/g++
ifeq (-O3,$(findstring -O3,$(DEBUG_FLAGS)))
DEBUG_FLAGS+=-flto
endif
endif
#Use only the last, non-comment line from MyDebugFlags file
LOCAL_DEBUG_FLAGS=$(shell test -f $(TOP)/MyDebugFlags && awk '/^[^\#]/ {last=$$0}END{print last}' $(TOP)/MyDebugFlags)
ifneq (,$(LOCAL_DEBUG_FLAGS))
DEBUG_FLAGS=$(LOCAL_DEBUG_FLAGS)
endif

View File

@ -1,17 +0,0 @@
include ../rules.mak
#******************************************************************************************
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
TARGETS = bootstrap clean test docs coverage leakcheck install
.PHONY: all $(TARGETS)
all:
$(MAKE) -C etc
$(MAKE) -C snmpmanager
$(TARGETS):
$(MAKE) -C etc $@
$(MAKE) -C snmpmanager $@

View File

@ -1,97 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs coverage leakcheck
LETC=snmpd.conf snmptrapd.conf snmpd.conf.singleserver snmptrapd.conf.singleserver
LLOCAL=snmpdx.conf snmpdx.conf.singleserver
MIB=CALPONT-MIB.txt \
AGENTX-MIB.txt \
DISMAN-EVENT-MIB.txt \
DISMAN-SCHEDULE-MIB.txt \
DISMAN-SCRIPT-MIB.txt \
EtherLike-MIB.txt \
HCNUM-TC.txt \
HOST-RESOURCES-MIB.txt \
HOST-RESOURCES-TYPES.txt \
IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt \
IANAifType-MIB.txt \
IANA-LANGUAGE-MIB.txt \
IANA-RTPROTO-MIB.txt \
IF-INVERTED-STACK-MIB.txt \
IF-MIB.txt \
INET-ADDRESS-MIB.txt \
IP-FORWARD-MIB.txt \
IP-MIB.txt \
IPV6-ICMP-MIB.txt \
IPV6-MIB.txt \
IPV6-TCP-MIB.txt \
IPV6-TC.txt \
IPV6-UDP-MIB.txt \
NET-SNMP-AGENT-MIB.txt \
NET-SNMP-EXAMPLES-MIB.txt \
NET-SNMP-EXTEND-MIB.txt \
NET-SNMP-MIB.txt \
NET-SNMP-TC.txt \
NOTIFICATION-LOG-MIB.txt \
RFC1155-SMI.txt \
RFC1213-MIB.txt \
RFC-1215.txt \
RMON-MIB.txt \
SMUX-MIB.txt \
SNMP-COMMUNITY-MIB.txt \
SNMP-FRAMEWORK-MIB.txt \
SNMP-MPD-MIB.txt \
SNMP-NOTIFICATION-MIB.txt \
SNMP-PROXY-MIB.txt \
SNMP-TARGET-MIB.txt \
SNMP-USER-BASED-SM-MIB.txt \
SNMP-USM-AES-MIB.txt \
SNMP-USM-DH-OBJECTS-MIB.txt \
SNMPv2-CONF.txt \
SNMPv2-MIB.txt \
SNMPv2-SMI.txt \
SNMPv2-TC.txt \
SNMPv2-TM.txt \
SNMP-VIEW-BASED-ACM-MIB.txt \
TCP-MIB.txt \
TRANSPORT-ADDRESS-MIB.txt \
UCD-DEMO-MIB.txt \
UCD-DISKIO-MIB.txt \
UCD-DLMOD-MIB.txt \
UCD-IPFWACC-MIB.txt \
UCD-SNMP-MIB.txt \
UDP-MIB.txt
bootstrap:
umask 002; \
mkdir -p $(INSTALL_ROOT_ETC); \
pushd $(INSTALL_ROOT_ETC) >/dev/null; \
rm -f $(LETC); \
popd >/dev/null; \
$(INSTALL) $(LETC) $(INSTALL_ROOT_ETC)
pushd $(INSTALL_ROOT_ETC) >/dev/null; \
chmod -f 666 $(LETC); \
popd >/dev/null; \
mkdir -p $(INSTALL_MIB); \
pushd $(INSTALL_MIB) >/dev/null; \
rm -f $(MIB); \
popd >/dev/null; \
$(INSTALL) $(MIB) $(INSTALL_MIB)
pushd $(INSTALL_MIB) >/dev/null; \
chmod -f 666 $(MIB); \
popd >/dev/null
mkdir -p $(INSTALL_ROOT_LOCAL); \
pushd $(INSTALL_ROOT_LOCAL) >/dev/null; \
rm -f $(LLOCAL); \
popd >/dev/null; \
$(INSTALL) $(LLOCAL) $(INSTALL_ROOT_LOCAL)
pushd $(INSTALL_ROOT_LOCAL) >/dev/null; \
chmod -f 666 $(LLOCAL); \
popd >/dev/null
clean:
rm -f *~

View File

@ -1,90 +0,0 @@
#******************************************************************************************
# $Id: Makefile 678 2012-04-04 18:20:46Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
# Author: Zhixuan Zhu
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
LIBS64=$(shell test `arch -k` == 'x86_64' && echo -L/usr/lib64)
PROGRAM=libsnmpmanager.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
CLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lconfigcpp $(LIBS64) -lxml2 -lnetsnmphelpers -lnetsnmpagent -lnetsnmp \
-lnetsnmpmibs -lrpm -loamcpp -lboost_filesystem -lloggingcpp
XLIBS=$(CLIBS)
TLIBS=-L. -lsnmpmanager $(CLIBS) -lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lloggingcpp -loamcpp -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers
SRCS=snmpmanager.cpp alarm.cpp
LINCLUDES=snmpglobal.h snmpmanager.h alarm.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) -L$(EXPORT_ROOT)/lib $(IDB_SNMP_LIBS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,26 +0,0 @@
include ../rules.mak
#******************************************************************************************
# $Id: Makefile 2375 2013-08-07 03:34:29Z bwilkinson $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
TARGETS = bootstrap clean test docs coverage leakcheck install
.PHONY: all $(TARGETS)
PROGS = dbbuilder editem dbloadxml \
getConfig cplogger \
clearShm setConfig \
configMgt viewtablelock cleartablelock ddlcleanup \
idbmeminfo \
hdfsCheck
all $(TARGETS):
if [ $@ != all ]; \
then target=$@; \
fi; \
for prog in $(PROGS); \
do $(MAKE) -C $$prog $$target || exit 1; \
done

View File

@ -1,94 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM1=li2bin
# List all the source files here
SRCS1=li2bin.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=
OBJS1=$(SRCS1:.cpp=.o)
$(PROGRAM1): $(OBJS1)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM1)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM1) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS1) $(PROGRAM1) core *~ *-gcov.* *.gcov $(PROGRAM1)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM1)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM1)-gcov: $(subst .o,-gcov.o,$(OBJS1))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM1)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM1)-gcov
for file in $(SRCS1); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM1)
leakcheck:
xleakcheck: $(PROGRAM1)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM1)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS1:.cpp=.d)
endif

View File

@ -1,97 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=brmtest
VERSION=1.0.0
# List all the source files here
SRCS=brmtest.cpp locks.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
OAMLIBS=-loamcpp -lsnmpmanager -lboost_filesystem -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lexecplan -ljoblist -lfuncexp -lrowgroup -ldataconvert -lloggingcpp -lboost_thread -lbrm -lmessageqcpp -lrwlock -lconfigcpp -lxml2 -lboost_date_time -ljoiner -lcommon $(OAMLIBS)
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,76 +0,0 @@
include ./../../rules.mak
#******************************************************************************************
#
# $Id: Makefile 609 2008-06-11 12:40:07Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
.PHONY: install clean test docs FORCE coverage leakcheck lport-install bootstrap
# The name of the executable
PROGRAM=cfread mtread
# List all the source files here
SRCS=cfread.cpp mtread.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L. -L$(CALPONT_LIBRARY_PATH)
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
TLIBS=$(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
OBJS=$(SRCS:.cpp=.o)
all: $(PROGRAM)
bootstrap:
mtread: mtread.cpp
$(LINK.cpp) -o $@ $^ $(TLIBS)
cfread: cfread.cpp
$(LINK.cpp) -o $@ $^ $(TLIBS)
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) core *~ *-gcov.* *.gcov *.d config.tag *.d.* $(PROGRAM)
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
coverage:
test:
leakcheck:
tdriver:
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=clearShm
VERSION=1.0.0
# List all the source files here
SRCS=main.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 928 2009-09-17 17:34:17Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=cleartablelock
VERSION=1.0.0
# List all the source files here
SRCS=cleartablelock.cpp cleartablelockthread.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,62 +0,0 @@
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
IPROGRAM=autoInstaller
APROGRAM=autoConfigure
QPROGRAM=svnQuery
SPROGRAM=stackReleaseChecker
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
SRCS=autoInstaller.cpp autoConfigure.cpp svnQuery.cpp
OBJS=$(SRCS:.cpp=.o)
all: $(IPROGRAM) $(APROGRAM) $(QPROGRAM) $(SPROGRAM)
$(IPROGRAM): autoInstaller.o
$(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo
$(APROGRAM): autoConfigure.o
$(LINK.cpp) -o $@ $^
$(QPROGRAM): svnQuery.o
$(LINK.cpp) -o $@ $^
$(SPROGRAM): stackReleaseChecker.o
$(LINK.cpp) -o $@ $^
install: bootstrap $(APROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(APROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(IPROGRAM) $(APROGRAM) $(QPROGRAM) $(SPROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.*
rm -rf html
docs:
tdriver:
test:
coverage:
leakcheck:
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=cplogger
VERSION=1.0.0
# List all the source files here
SRCS=main.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,96 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=dbbuilder
VERSION=1.0.0
# List all the source files here
SRCS=dbbuilder.cpp systemcatalog.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,101 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
CPROGRAM=colxml
VERSION=1.0.0
ALL_PROGRAMS=$(CPROGRAM)
# List all the source files here
CSRCS=colxml.cpp inputmgr.cpp
SRCS=colxml.cpp inputmgr.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
COBJS=$(CSRCS:.cpp=.o)
all: $(ALL_PROGRAMS)
$(CPROGRAM): $(COBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(ALL_PROGRAMS)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(ALL_PROGRAMS) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(CPROGRAM) core *~ *-gcov.* *.gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(CPROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(CPROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 928 2009-09-17 17:34:17Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=ddlcleanup
VERSION=1.0.0
# List all the source files here
SRCS=ddlcleanup.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -lddlcleanuputil
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=ddldriver
VERSION=1.0.0
# List all the source files here
SRCS=ddldriver.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=dmldriver
VERSION=1.0.0
# List all the source files here
SRCS=dmldriver.cpp tpchrf2.cpp dmlif.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=editem
VERSION=1.0.0
# List all the source files here
SRCS=editem.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,99 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=evalidx
VERSION=1.0.0
# List all the source files here
SRCS=evalidx.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
OAMLIBS=-loamcpp -lsnmpmanager -lboost_filesystem -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -ldmlpackageproc -lexecplan -ljoblist -lfuncexp -lrowgroup -lwriteengine -lbrm \
-ldataconvert -lcacheutils -ldmlpackage -lmessageqcpp -lloggingcpp -lconfigcpp -lrwlock -lboost_thread -lxml2 \
-lboost_date_time -ljoiner -lcommon $(OAMLIBS)
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,98 +0,0 @@
#!/usr/bin/python
import os, sys, glob, shutil, xml.dom.minidom
def find_paths():
"""Find DBRoot and BulkRoot."""
try:
config_file = os.environ['CALPONT_CONFIG_FILE']
except KeyError:
try:
config_file = '/usr/local/Calpont/etc'
os.lstat(config_file)
except:
sys.exit('No config file available')
xmldoc = xml.dom.minidom.parse(config_file)
bulk_node = xmldoc.getElementsByTagName('BulkRoot')[0]
db_node = xmldoc.getElementsByTagName('DBRoot')[0]
bulk_dir = bulk_node.childNodes[0].nodeValue
data_dir = db_node.childNodes[0].nodeValue
return (bulk_dir, data_dir)
def validate_indexes(job_file):
index_files = []
xmldoc = xml.dom.minidom.parse(job_file)
for index_node in xmldoc.getElementsByTagName('Index'):
curTreeOid = index_node.getAttribute('iTreeOid')
curListOid = index_node.getAttribute('iListOid')
curMapOid = index_node.getAttribute('mapOid')
curIdxCmdArg = ' -t ' + curTreeOid + ' -l ' + curListOid + ' -v -c ' + curMapOid + ' -b 4' + ' > idxCol_' + curMapOid+'.out'
# print curIdxCmd
# exec_cmd( genii + '/tools/evalidx/evalidx', curIdxCmd )
index_files.append( curIdxCmdArg )
return index_files
def exec_cmd(cmd, args):
"""Execute command using subprocess module or if that fails,
use os.system
"""
try:
import subprocess
try:
retcode = call(cmd + " "+args, shell=True)
if retcode < 0:
print >>sys.stderr, "Child was terminated by signal", -retcode
sys.exit(-1)
else:
print >>sys.stderr, "Child returned", retcode
except OSError, e:
print >>sys.stderr, "Execution failed:", e
sys.exit(-1)
except:
res = os.system(cmd+' '+args)
if res:
sys.exit( res )
def main():
"""
Validate indexes..
"""
if not os.access('.', os.W_OK):
os.chdir('/tmp')
print 'Changing to /tmp to have permission to write files'
if len(os.getenv('LD_LIBRARY_PATH'))<5:
print 'Suspicous LD_LIBRARY_PATH: %s'%os.getenv('LD_LIBRARY_PATH')
home = os.getenv('HOME')
genii = home+'/genii'
(bulkroot, dbroot) = find_paths()
if len(glob.glob(bulkroot+'/job/Job_300.xml')) == 0:
sys.exit("No Job_300.xml exist ")
indexes = validate_indexes(bulkroot+'/job/Job_300.xml')
for idxCmdArg in indexes:
print idxCmdArg
exec_cmd( genii + '/tools/evalidx/evalidx', idxCmdArg )
## the following line allows either interactive use or module import
if __name__=="__main__": main()

View File

@ -1,96 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=fixdate
VERSION=1.0.0
# List all the source files here
SRCS=fixdate.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -ldmlpackageproc -lexecplan -lwriteengine -lbrm \
-ldmlpackage -lmessageqcpp -lloggingcpp -lconfigcpp -lrwlock -lboost_thread -lxml2
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install:
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=getConfig
VERSION=1.0.0
# List all the source files here
SRCS=main.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,96 +0,0 @@
#******************************************************************************************
# $Id: Makefile 3048 2012-04-04 15:33:45Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
# The name of the executable
PROGRAM=hdfsCheck
VERSION=1.0.0
# List all the source files here
SRCS=hdfsCheck.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -lloggingcpp -lidbdatafile -lboost_idb \
-Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,9 +0,0 @@
CXXFLAGS=-g0 -O3 -Wall
LDFLAGS+=-L/usr/local/lib
idb_comp: main.o
$(LINK.cpp) -o idb_comp main.o -llzo2
clean:
rm -f idb_comp main.o

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=idbmeminfo
VERSION=1.0.0
# List all the source files here
SRCS=idbmeminfo.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,57 +0,0 @@
#******************************************************************************************
# $Id: Makefile 33 2006-09-29 13:45:51Z dhill $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
# Author: David Hill
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=notificationTester
VERSION=1.0.0
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# we need to add some search paths here because on a boostrap build we won't find liboamcpp
# anywhere except in ../oamcpp
CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
TLIBS=-lcppunit -ldl
GLIBS=$(CLIBS) -lcppunit -ldl
SRCS=main.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
client: client.o
$(LINK.cpp) -o $@ $^
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
bootstrap:
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,98 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=PingProc
VERSION=1.0.0
# List all the source files here
SRCS=pingproc.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
OAMLIBS=-loamcpp -lsnmpmanager -lboost_filesystem -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lexecplan -ljoblist -lfuncexp -lrowgroup -ldataconvert -lloggingcpp -lboost_thread -lbrm -lmessageqcpp -lrwlock -lconfigcpp -lxml2 -lboost_date_time -ljoiner -lcommon $(OAMLIBS)
#LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -ljoblist -lfuncexp -lrowgroup -lexecplan -ldataconvert -lbrm -lmessageqcpp -lrwlock -lloggingcpp -lconfigcpp -lxml2 -lboost_thread
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,98 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=QFE
VERSION=1.0.0
# List all the source files here
SRCS=server.cpp parsequery.cpp sendcsep.cpp returnedrows.cpp socketio.cpp cseputils.cpp ddlstmts.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
### DEBUG_FLAGS=-g
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -Wno-unused-label
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
QFE_LDLIBS=$(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
CLI_LDLIBS=$(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
.PHONY: install clean test docs coverage leakcheck
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
all: $(PROGRAM) cli
$(PROGRAM): qfeparser.o qfelexer.o $(OBJS)
$(LINK.cpp) $(QFE_LDLIBS) -o $@ $^
qfelexer.cpp: qfelexer.lpp
flex -i -Pqfe -oqfelexer.cpp qfelexer.lpp
qfeparser.cpp: qfeparser.ypp
bison -d -p qfe -o qfeparser.cpp qfeparser.ypp
cmp -s qfeparser.hpp qfeparser.h || cp qfeparser.hpp qfeparser.h
install: $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d *.d.* config.tag cli.o cli
rm -rf html
rm -rf qfeparser.h qfeparser.cpp qfeparser.hpp qfelexer.cpp qfeparser.output qfeparser.o qfelexer.o
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
cli: cli.o socketio.o
$(LINK.cpp) $(CLI_LDLIBS) -o $@ $^
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
test:
xtest run: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,96 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=rebuildEM
VERSION=1.0.0
# List all the source files here
SRCS=main.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lbrm -lmessageqcpp -lrwlock -lconfigcpp -lboost_thread -lxml2 \
-lloggingcpp
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,82 +0,0 @@
#!/bin/bash
# BP 09/16/2011 13:43
# This script will give user to
# list all the calpont stacks
# reserve a calpont stack
# release a calpont stack
# Help to use a test stack without stepping each other.
#
DB=stacks
usage()
{
echo "Usage:" >&2
echo " ${0##*/} list" >&2
echo " ${0##*/} reserve stackname who" >&2
echo " ${0##*/} release stackname who" >&2
}
cmd="$1"
argc=$#
if [ -z "$cmd" -o "$cmd" = "-h" ]; then
usage
exit 1
fi
if [ $(expr 'list' : "$cmd") -gt 0 ]; then
cmd=list
INST=$2
elif [ $(expr 'reserve' : "$cmd") -gt 2 ]; then
cmd=reserve
INST=$4
elif [ $(expr 'release' : "$cmd") -gt 2 ]; then
cmd=release
INST=$4
fi
if [ -z "$INSTALLDIR" ]; then
INSTALLDIR="/usr/local/Calpont"
if [ $INST ]; then
INSTALLDIR=$INST
fi
export INSTALLDIR
fi
if [ -z "$MYSQLCMD" ]; then
if [ -d "$INSTALLDIR/mysql" ]; then
# Linux.
MYSQLCMD="$INSTALLDIR/mysql/bin/mysql -h 10.100.4.51 -u root --database=$DB"
else
# Windows.
MYSQLCMD="$INSTALLDIR/bin/mysql -h 10.100.4.51 -u root --database=$DB"
fi
export MYSQLCMD
fi
good=0
if [ "$cmd" = "list" ]; then
sql="call list_stacks()"
$MYSQLCMD -e "$sql"
good=1
fi
if [ "$cmd" = "reserve" -a $argc -ge 3 ]; then
sql="call reserve_stack('$2', '$3')"
$MYSQLCMD -e "$sql"
good=1
fi
if [ "$cmd" = "release" -a $argc -ge 3 ]; then
sql="call release_stack('$2', '$3')"
$MYSQLCMD -e "$sql"
good=1
fi
if [ $good -eq 0 ]; then
usage
exit 1
fi

View File

@ -1,97 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=sendPlan
VERSION=1.0.0
# List all the source files here
SRCS=sendplan.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
OAMLIBS=-loamcpp -lsnmpmanager -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS)
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,107 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 444 2008-08-29 16:01:07Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
SCRIPTS=configxml.sh
# The name of the executable
PROGRAM=setConfig
VERSION=1.0.0
# List all the source files here
SRCS=main.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
umask 002; \
mkdir -p $(INSTALL_ROOT_BIN); \
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
rm -f $(SCRIPTS); \
popd >/dev/null; \
$(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_BIN)
pushd $(INSTALL_ROOT_BIN) >/dev/null; \
chmod -f 555 $(SCRIPTS); \
popd >/dev/null
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,97 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=valprint
VERSION=1.0.0
# List all the source files here
SRCS=valprint.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
OAMLIBS=-loamcpp -lsnmpmanager -lboost_filesystem -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lconfigcpp -lxml2 -lboost_thread
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=vbgen
VERSION=1.0.0
# List all the source files here
SRCS=vbgen.cpp myrand.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH)
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,95 +0,0 @@
include ../../rules.mak
#******************************************************************************************
# $Id: Makefile 928 2009-09-17 17:34:17Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
# The name of the executable
PROGRAM=viewtablelock
VERSION=1.0.0
# List all the source files here
SRCS=viewtablelock.cpp
# Run-time directories for project shared libs
CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib
# Preprocessor flags
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
# Compiler flags
CXXFLAGS+=$(DEBUG_FLAGS) -Wall
# Linker flags
LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib
# install dir (set CALPONT_INSTALL_ROOT in env to override)
CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT)
# end (sub-)project-specifc settings
.PHONY: install clean test docs FORCE coverage leakcheck bootstrap
GLIBS=-lcppunit -ldl
OBJS=$(SRCS:.cpp=.o)
$(PROGRAM): $(OBJS)
$(LINK.cpp) -o $@ $^
bootstrap:
install: bootstrap $(PROGRAM)
mkdir -p $(INSTALL_ROOT_BIN)
$(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN)
clean:
rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.*
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
FORCE:
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: $(PROGRAM)-gcov FORCE
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file; \
done
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ -lboost_program_options
test:
xtest run:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)
leakcheck:
xleakcheck: $(PROGRAM)
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM)
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,25 +0,0 @@
include ../rules.mak
#******************************************************************************************
# $Id: Makefile 4037 2013-08-07 03:37:31Z bwilkinson $
#
# Copyright (C) 2009-2013 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
TARGETS = bootstrap clean test docs coverage leakcheck install
.PHONY: $(TARGETS)
PROGS = boost_idb startup common configcpp loggingcpp messageqcpp threadpool \
rwlock dataconvert joiner rowgroup cacheutils funcexp udfsdk compress \
batchloader ddlcleanup mysqlcl_idb querystats jemalloc windowfunction idbdatafile \
idbhdfs winport thrift querytele
all $(TARGETS):
if [ $@ != all ]; \
then target=$@; \
fi; \
for prog in $(PROGS); \
do $(MAKE) -C $$prog $$target || exit $$?; \
done

View File

@ -1,306 +0,0 @@
Installation Instructions
*************************
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
Software Foundation, Inc.
Copyright (C) 2014 InfiniDB, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
InfiniDB, Inc. also gives unlimited permission to copy, distribute and
modify it.
Basic Installation from source
==============================
**** InfiniDB source build instructions ****
Consult the generic installation instructions
that follow for detailed information. The short version is:
cd $HOME
git clone http://github.com/infinidb/mysql
git clone http://github.com/infinidb/infinidb
-- or --
tar -zxf <srcfile>
cd mysql
./configure --prefix=$HOME
make
make install
cd ../infinidb
./configure --prefix=$HOME
make
make install
This will create a directory called Calpont in $HOME which conatins
all the software you need.
Install the InfiniDB software into /usr/local (for example) by copying
the entire Calpont directory tree there.
After untaring the sofware or installing the RPM's, setup the software
to run (this script needs to run with root privileges). Check the Installation
Guide for addition details on using postConfigure:
/usr/local/Calpont/bin/postConfigure
Setup some aliases:
. /usr/local/Calpont/bin/calpontAlias
Connect to MySQL:
idbmysql
A suggested test scenario:
create database calpont;
use calpont;
create table caltest (col1 int, col2 int) engine=infinidb;
show create table caltest;
set autocommit=0;
insert into caltest values (1, 2);
insert into caltest values (3, 4);
commit;
select * from caltest;
To use bulk load:
1. A delimited import file should be created to match the table that
you want to import data to similar to the following. In this
example, the file will be saved as idbtest.tbl:
100|1001|
200|2002|
2. Save/place this file in a directory.
3. From that same directory, import the rows:
/usr/local/Calpont/bin/cpimport calpont caltest caltest.tbl
And check the import:
calpontmysql calpont
select * from caltest;
That's it. Enjoy.
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. (Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You only need
`configure.ac' if you want to change it or regenerate `configure' using
a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that the
`configure' script does not know about. Run `./configure --help' for
details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory. After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture.
Installation Names
==================
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' cannot figure out automatically,
but needs to determine by the type of machine the package will run on.
Usually, assuming the package is built to be run on the _same_
architectures, `configure' can figure that out, but if it prints a
message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share, you
can create a site shell script called `config.site' that gives default
values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script). Here is a another example:
/bin/bash ./configure CONFIG_SHELL=/bin/bash
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
configuration-related scripts to be executed by `/bin/bash'.
`configure' Invocation
======================
`configure' recognizes the following options to control how it operates.
`--help'
`-h'
Print a summary of the options to `configure', and exit.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.

View File

@ -1,145 +0,0 @@
To build the software from source, consult the file INSTALL.
Brief Install Instructions:
1. Install the 3 Calpont InfiniDB RPMs.
2. Install and start the software, run: /usr/local/Calpont/bin/postConfigure
3. Setup some aliases: . /usr/local/Calpont/bin/calpontAlias
4. Connect to MySQL: idbmysql
5. Try the test in step 12 below
Detailed Installation Instructions:
1. Download the package calpont-2.2.0-2.x86_64.rpm.tar.gz (RHEL5 64-BIT)
to the server where you are installing Calpont.
2. Obtain root user access.
3. Unpack the tarball, which will generate 4 RPMs.
tar xvf calpont-2.2.0-2.x86_64.rpm.tar.gz
4. Install the 3 RPMs in this order, the Calpont InfiniDB software will be installed in
/usr/local/Calpont.
rpm -ivh infinidb-libs-2.2.0-2.x86_64.rpm
rpm -ivh infinidb-platform-2.2.0-2.x86_64.rpm
rpm -ivh infinidb-mysql-2.2.0-2.x86_64.rpm
rpm -ivh infinidb-storage-engine-2.2.0-2.x86_64.rpm
5a.To configure and run on a single server system utilizing local disk storage,
run install script:
/usr/local/Calpont/bin/postConfigure
5b.To configure and run on a multi-server system and/or to utilize a SAN storage
system, follow the instructions in the Calpont InfiniDB Installation Guide.
/usr/local/Calpont/bin/postConfigure
6. Ports utilized by the Calpont InfiniDB Software
The Calpont MySQL daemon utilizes port 3306. To use a different port, update
the 2 locations in the following file:
/usr/local/Calpont/mysql/my.cnf
port = 3306
port = 3306
You must reserve the following ports to run the Calpont InfiniDB Software:
8600 - 8622, 8700, and 8800
7. Setup some aliases:
. /usr/local/Calpont/bin/calpontAlias
8. To manually start and stop the Calpont InfiniDB Software as the root user run:
cc startSystem
To stop the Calpont Software, run:
cc stopSystem
9. To start/stop the Calpont InfiniDB Software during system boot/shutdown use the
chkconfig command
/sbin/chkconfig --add infinidb
/sbin/chkconfig infinidb on
10. After the Calpont InfiniDB Software has been started, use the following command to
connect to the Calpont OAM Console and watch for the System to go to the
ACTIVE status. The follow will repeatedly run the OAM command getsysteminfo
every 5 seconds.
calpontOAMconsole getsysteminfo -r
Here is an example display from a Single Server Install:
System and Module statuses
Component Status Last Status Change
------------ ---------------------- ------------------------
System ACTIVE Mon Apr 6 18:07:14 2009
Module dm1 ACTIVE Mon Apr 6 18:07:12 2009
Calpont Process statuses
Process Module Status Last Status Change Process ID
------------------ ------ ------------ ------------------------ ----------
ProcessMonitor dm1 ACTIVE Mon Apr 6 18:06:41 2009 12753
ProcessManager dm1 ACTIVE Mon Apr 6 18:06:46 2009 12954
SNMPTrapDaemon dm1 ACTIVE Mon Apr 6 18:06:41 2009 12963
SNMPAgent dm1 ACTIVE Mon Apr 6 18:06:50 2009 13565
ServerMonitor dm1 ACTIVE Mon Apr 6 18:06:55 2009 13635
DBRMWorkerNode dm1 ACTIVE Mon Apr 6 18:06:51 2009 13640
DBRMControllerNode dm1 ACTIVE Mon Apr 6 18:06:52 2009 13645
ExeMgr dm1 ACTIVE Mon Apr 6 18:07:05 2009 14578
PrimProc dm1 ACTIVE Mon Apr 6 18:07:03 2009 13842
DDLProc dm1 ACTIVE Mon Apr 6 18:07:10 2009 14936
DMLProc dm1 ACTIVE Mon Apr 6 18:07:13 2009 15114
Active Alarm Counts: Critical = 0, Major = 0, Minor = 0, Warning = 0, Info = 0
Once the System status is ACTIVE, enter the following to exit back to the
UNIX prompt:
CNTR<C>
Or to get back Calpont OAM Console Prompt,enter the following:
CNTR<D>
11. Use the following command to access the Calpont InfiniDB MySQL console:
idbmysql
Example output:
Welcome to the Mysql monitor. Commands end with ; or \g.
Your Mysql connection id is 1
Server version: 5.1.26-Calpont-log Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
12. Run the following upgrade script to create calponsys schema and upgrade the syscolumn table: /usr/local/Calpont/bin/upgrade-infinidb.sh
13. As an example to get you started, try this:
create database calpont;
use calpont;
create table caltest (col1 int, col2 int) engine=infinidb;
show create table caltest;
insert into caltest values (1, 2);
insert into caltest values (3, 4);
commit;
select * from caltest;
14. Consult the Admin Guide and Syntax Guide for additional information on how
to get started.

View File

@ -1,91 +0,0 @@
#******************************************************************************************
# $Id: Makefile 3022 2012-03-22 12:58:08Z chao $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libbatchloader.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lcppunit -lexecplan -liboamcpp -ldl
TLIBS=-L. -lbatchloader $(CLIBS)
GLIBS=$(CLIBS)
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp
SRCS=batchloader.cpp
LINCLUDES=batchloader.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
xtest: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck:
xleakcheck: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,93 +0,0 @@
#******************************************************************************************
# $Id$
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libboost_idb.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I. -I$(EXPORT_ROOT)/include
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
TLIBS=-L. -L$(EXPORT_ROOT)/lib
GLIBS=-L$(EXPORT_ROOT)/lib
LLIBS=-lpthread
SRCS=\
codecvt_error_category.cpp \
cpp_regex_traits.cpp \
cregex.cpp \
c_regex_traits.cpp \
error_code.cpp \
fileiter.cpp \
future.cpp \
greg_month.cpp \
icu.cpp \
instances.cpp \
once.cpp \
operations.cpp \
path.cpp \
path_traits.cpp \
portability.cpp \
posix_api.cpp \
regex.cpp \
regex_debug.cpp \
regex_raw_buffer.cpp \
regex_traits_defaults.cpp \
static_mutex.cpp \
thread.cpp \
tss_null.cpp \
unique_path.cpp \
usinstances.cpp \
utf8_codecvt_facet.cpp \
w32_regex_traits.cpp \
wc_regex_traits.cpp \
wide_posix_api.cpp \
windows_file_codecvt.cpp \
winstances.cpp
LINCLUDES=
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) $(LLIBS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) --recursive --force boost $(INSTALL_ROOT_INCLUDE)
clean:
rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) \
*~ *.o *.d* *-gcov* *.gcov
docs:
xdocs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,91 +0,0 @@
#******************************************************************************************
# $Id: Makefile 3048 2012-04-04 15:33:45Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libcacheutils.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lcppunit -ldl
TLIBS=-L. -lcacheuitls $(CLIBS)
GLIBS=$(CLIBS)
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp
SRCS=cacheutils.cpp
LINCLUDES=cacheutils.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test:
xtest: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage:
xcoverage: tdriver-gcov
rm -f *.gcda
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck:
xleakcheck: $(LIBRARY) tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d
endif

View File

@ -1,74 +0,0 @@
#******************************************************************************************
# $Id: Makefile 3925 2013-06-20 14:08:39Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libcommon.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
TLIBS=-L. -L$(EXPORT_ROOT)/lib
GLIBS=-L$(EXPORT_ROOT)/lib
SRCS= \
cgroupconfigurator.cpp \
fixedallocator.cpp \
nullvaluemanip.cpp \
poolallocator.cpp \
MonitorProcMem.cpp
LINCLUDES= \
cgroupconfigurator.h \
fixedallocator.h \
hasher.h \
nullvaluemanip.h \
simpleallocator.h \
poolallocator.h \
stlpoolallocator.h \
syncstream.h \
atomicops.h \
branchpred.h \
MonitorProcMem.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) \
*~ *.o *.d* *-gcov* *.gcov
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d)
endif

View File

@ -1,60 +0,0 @@
#******************************************************************************************
# $Id: Makefile 3437 2012-12-04 20:43:29Z rdempsey $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libcompress.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I$(EXPORT_ROOT)/include -DNDEBUG
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
CFLAGS+=$(CXXFLAGS)
TLIBS=-L. -L$(EXPORT_ROOT)/lib
GLIBS=-L$(EXPORT_ROOT)/lib
CXXSRCS=idbcompress.cpp snappy.cpp snappy-sinksource.cpp version1.cpp snappy-stubs-internal.cpp
CSRCS=
LINCLUDES=idbcompress.h
CXXOBJS=$(CXXSRCS:.cpp=.o)
COBJS=$(CSRCS:.c=.o)
$(LIBRARY): $(CXXOBJS) $(COBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(CXXOBJS) $(COBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -rf $(PROGRAM) $(LIBRARY) $(COBJS) $(CXXOBJS) *~ *.o *.d* *-gcov* *.gcov
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(CXXSRCS:.cpp=.d) $(CSRCS:.c=.d)
endif

View File

@ -1,96 +0,0 @@
#******************************************************************************************
# $Id: Makefile 3465 2012-12-21 17:17:23Z dhill $
#
# Copyright (C) 2009-2012 Calpont Corporation
# All rights reserved
#*****************************************************************************************/
include ../../rules.mak
.PHONY: install clean test docs coverage leakcheck
PROGRAM=libconfigcpp.so
VERSION=1.0.0
LIBRARY=$(PROGRAM).$(VERSION)
CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2
CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lcppunit -ldl
TLIBS=-L. -lconfigcpp -lmessageqcpp -lloggingcpp -lidbboot -lboost_idb $(CLIBS)
GLIBS=$(TLIBS)
LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -lxml2
SRCS=configcpp.cpp writeonce.cpp xmlparser.cpp configstream.cpp
LINCLUDES=configcpp.h config.h xmlparser.h
OBJS=$(SRCS:.cpp=.o)
$(LIBRARY): $(OBJS)
$(LINK.cpp) -shared -o $(LIBRARY) $(OBJS)
rm -f $(PROGRAM)
ln -s $(LIBRARY) $(PROGRAM)
install: bootstrap $(LIBRARY)
umask 002; \
mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \
pushd $(INSTALL_ROOT_LIB) >/dev/null; \
rm -f $(LIBRARY) $(PROGRAM); \
ln -s $(LIBRARY) $(PROGRAM); \
popd >/dev/null; \
$(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB)
bootstrap:
$(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)
clean:
rm -f $(OBJS) tdriver*.o $(PROGRAM) $(LIBRARY) tdriver tdriver2 core *~ *.tag *-gcov.* *.gcov tdriver*-gcov *.d
rm -rf html
docs:
doxygen $(EXPORT_ROOT)/etc/Doxyfile
tdriver: tdriver.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
tdriver2: tdriver2.o
$(LINK.cpp) -o $@ $^ $(TLIBS)
test: $(LIBRARY) tdriver tdriver2
$(MAKE) -C ../messageqcpp install
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver2
%-gcov.o: %.cpp
$(COMPILE.cpp) -o $@ $^
tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
tdriver2-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage
tdriver2-gcov: tdriver2-gcov.o $(subst .o,-gcov.o,$(OBJS))
$(LINK.cpp) -o $@ $^ $(GLIBS)
coverage: tdriver-gcov tdriver2-gcov
rm -f *.gcda
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver-gcov
LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver2-gcov
for file in $(SRCS); do \
bfile=`basename $$file .cpp`; \
gcov -o $${bfile}-gcov $$file >/dev/null; \
done
/usr/local/bin/genCoverage.pl $(SRCS)
leakcheck: $(LIBRARY) tdriver tdriver2
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 valgrind --tool=memcheck --leak-check=yes ./tdriver
LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 valgrind --tool=memcheck --leak-check=yes ./tdriver2
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.cpp=.d) tdriver.d tdriver2.d
endif

View File

@ -1,39 +0,0 @@
include ../../../rules.mak
LIBRARY=libmd5.a
SRCS= md5_dgst.c md5_one.c mem_clr.c
CFLAGS+=$(DEBUG_FLAGS) -Wall -fpic
OBJS=$(SRCS:.c=.o)
$(LIBRARY): $(OBJS)
$(AR) scru $(LIBRARY) $(OBJS)
bootstrap:
install: bootstrap $(LIBRARY)
clean:
rm -f $(OBJS) core *~ *-gcov.* *.gcov *.d config.tag *.d.* $(LIBRARY)
rm -rf html
docs:
$(EXPORT_ROOT)/etc/Doxyfile
coverage:
test:
leakcheck:
%.d: %.c
@set -e; rm -f $@; \
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
ifndef BOOTSTRAP
-include $(SRCS:.c=.d)
endif

Some files were not shown because too many files have changed in this diff Show More