File: Makefile.am

package info (click to toggle)
tango 9.2.5a%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 21,624 kB
  • ctags: 11,597
  • sloc: cpp: 135,480; sh: 21,772; makefile: 1,103; ansic: 1,083; java: 215; python: 55
file content (47 lines) | stat: -rw-r--r-- 1,763 bytes parent folder | download
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
47
AM_CPPFLAGS = $(ORB_INCLUDE_PREFIX)  $(LIBZMQ_CFLAGS) \
       -I$(top_srcdir)/lib/cpp/log4tango/include \
       -I$(top_builddir)/lib/cpp/log4tango/include \
       -I$(top_builddir)/lib/cpp/server \
       -I$(top_srcdir)/lib/cpp/client \
       -I$(top_srcdir)/lib/cpp/server \
       $(DB_CFLAGS) \
       $(ZLIB_CPPFLAGS)

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

LDADD = -L$(top_builddir)/lib/cpp/client -ltango -L$(top_builddir)/lib/cpp/log4tango/src \
        -llog4tango $(DB_LDFLAGS) \
         $(DB_LDLIBS) $(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_db8.sql update_db7.sql rem_history.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_db8.sql.in update_db7.sql.in update_db.sql.in rem_history.sql.in

.force: