File: Makefile.am

package info (click to toggle)
tango 8.1.2c%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,964 kB
  • ctags: 14,286
  • sloc: cpp: 133,954; sh: 14,704; ansic: 1,083; makefile: 944; java: 215; python: 55
file content (46 lines) | stat: -rw-r--r-- 1,531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
INCLUDES = $(ORB_INCLUDE_PREFIX)  $(LIBZMQ_CFLAGS) \
	   -I$(top_srcdir)/lib/cpp/log4tango/include \
	   -I$(top_builddir)/lib/cpp/log4tango/include \
	   -I$(top_srcdir)/lib/cpp/client \
	   -I$(top_srcdir)/lib/cpp/server \
      	$(MYSQLCLIENT_CFLAGS) \
      	$(ZLIB_CPPFLAGS)

AM_CXXFLAGS= -Wall -D_FORTIFY_SOURCE=2 -O1 -fPIE

LDADD = -L$(top_builddir)/lib/cpp/server -ltango -L$(top_builddir)/lib/cpp/log4tango/src \
		-llog4tango $(MYSQLCLIENT_LDFLAGS) \
         $(MYSQLCLIENT_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS)  $(LIBZMQ_LIBS)

AM_LDFLAGS = -Wl,-z,now -pie 

bin_PROGRAMS=DataBaseds

DataBaseds_SOURCES=ClassFactory.cpp  		\
                   DataBaseClass.cpp 		\
                   DataBase.cpp      		\
				   DataBaseStateMachine.cpp \
                   main.cpp          		\
                   update_starter.cpp		\
				   DataBaseUtils.cpp		\
				   DataBase.h				\
				   DataBaseClass.h 			\
		  		   update_starter.h

if TANGO_DB_CREATE_ENABLED

dbdir=${pkgdatadir}/db
db_DATA=create_db.sh create_db.sql my.cnf create_db_tables.sql stored_proc.sql update_db.sh update_db.sql update_db7.sql
	
## This is to make sure that the create-db script is run on each make all.
## See create_db.sh for more information.
all-local: .force
	$(SHELL) ${top_builddir}/cppserver/database/create_db.sh < ${top_builddir}/cppserver/database/create_db.sql

endif

EXTRA_DIST	= create_db.sh.in create_db.sql.in my.cnf.in create_db_tables.sql.in stored_proc.sql.in \
				update_db.sh.in update_db7.sql.in update_db.sql.in	

.force: