Skip to content

Commit

Permalink
TS-2172: iocore and proxy Makefile.am cleanup
Browse files Browse the repository at this point in the history
clean up all the cross directory compiling from iocore and mgmt
move some shared files into proxy/shared and seperated .a
  • Loading branch information
mingzym committed Nov 7, 2013
1 parent 8197736 commit efe90f3
Show file tree
Hide file tree
Showing 19 changed files with 80 additions and 33 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ proxy/config/storage.config.default
plugins/experimental/esi/*_test plugins/experimental/esi/*_test
plugins/experimental/spdy/zstream_test plugins/experimental/spdy/zstream_test


mgmt/api/remote/traffic_api_cli_remote mgmt/api/traffic_api_cli_remote
mgmt/tools/traffic_mcast_snoop mgmt/tools/traffic_mcast_snoop
mgmt/tools/traffic_net_config mgmt/tools/traffic_net_config
mgmt/tools/traffic_shmem_clean mgmt/tools/traffic_shmem_clean
mgmt/tools/traffic_time_config mgmt/tools/traffic_time_config
mgmt/tools/traffic_vip_config mgmt/tools/traffic_vip_config
mgmt/api/remote/api_cli_remote mgmt/api/api_cli_remote
mgmt/cli/traffic_line mgmt/cli/traffic_line
mgmt/cli/traffic_shell mgmt/cli/traffic_shell
mgmt/tools/shmem_clean mgmt/tools/shmem_clean
Expand Down
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export CCACHE_BASEDIR
# proxy/api/ts has to be built first, since so much of libraries and "core # proxy/api/ts has to be built first, since so much of libraries and "core
# depends on the generates ts/ts.h include file. # depends on the generates ts/ts.h include file.
if STANDALONE_IOCORE if STANDALONE_IOCORE
SUBDIRS = proxy/api/ts iocore lib proxy/hdrs mgmt proxy cop plugins tools example SUBDIRS = proxy/api/ts iocore lib proxy/hdrs proxy/shared mgmt proxy cop plugins tools example
else else
SUBDIRS = proxy/api/ts iocore lib proxy/hdrs mgmt proxy cop rc doc plugins tools example SUBDIRS = proxy/api/ts iocore lib proxy/hdrs proxy/shared mgmt proxy cop rc doc plugins tools example
endif endif


DIST_BUILD_USER=`id -nu` DIST_BUILD_USER=`id -nu`
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1925,6 +1925,7 @@ AC_CONFIG_FILES([
proxy/config/storage.config.default proxy/config/storage.config.default
proxy/congest/Makefile proxy/congest/Makefile
proxy/hdrs/Makefile proxy/hdrs/Makefile
proxy/shared/Makefile
proxy/http/Makefile proxy/http/Makefile
proxy/http/remap/Makefile proxy/http/remap/Makefile
proxy/logging/Makefile proxy/logging/Makefile
Expand Down
2 changes: 1 addition & 1 deletion iocore/aio/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ test_AIO_LDADD = \
$(top_builddir)/mgmt/utils/libutils_p.a \ $(top_builddir)/mgmt/utils/libutils_p.a \
$(top_builddir)/iocore/eventsystem/libinkevent.a \ $(top_builddir)/iocore/eventsystem/libinkevent.a \
$(top_builddir)/lib/ts/libtsutil.la \ $(top_builddir)/lib/ts/libtsutil.la \
$(top_builddir)/libUglyLogStubs.a \ $(top_builddir)/proxy/shared/libUglyLogStubs.a \
@LIBTCL@ @LIBTCL@


1 change: 1 addition & 0 deletions iocore/cache/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/proxy \ -I$(top_srcdir)/proxy \
-I$(top_srcdir)/proxy/hdrs \ -I$(top_srcdir)/proxy/hdrs \
-I$(top_srcdir)/proxy/http \ -I$(top_srcdir)/proxy/http \
-I$(top_srcdir)/proxy/shared \
-I$(top_srcdir)/proxy/http/remap \ -I$(top_srcdir)/proxy/http/remap \
-I$(top_srcdir)/mgmt \ -I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/preparse \ -I$(top_srcdir)/mgmt/preparse \
Expand Down
2 changes: 1 addition & 1 deletion iocore/eventsystem/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ test_LDADD = \
$(top_builddir)/mgmt/utils/libutils_p.a \ $(top_builddir)/mgmt/utils/libutils_p.a \
$(top_builddir)/iocore/eventsystem/libinkevent.a \ $(top_builddir)/iocore/eventsystem/libinkevent.a \
$(top_builddir)/lib/ts/libtsutil.la \ $(top_builddir)/lib/ts/libtsutil.la \
$(top_builddir)/proxy/libUglyLogStubs.a \ $(top_builddir)/proxy/shared/libUglyLogStubs.a \
@LIBTCL@ @LIBTCL@


test_Buffer_SOURCES = test_Buffer.cc test_Buffer_SOURCES = test_Buffer.cc
Expand Down
5 changes: 3 additions & 2 deletions mgmt/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ AM_CPPFLAGS = $(ink_with_modules_local) \
-I$(top_srcdir)/lib/ts \ -I$(top_srcdir)/lib/ts \
-I$(top_srcdir)/proxy \ -I$(top_srcdir)/proxy \
-I$(top_srcdir)/proxy/hdrs \ -I$(top_srcdir)/proxy/hdrs \
-I$(top_srcdir)/proxy/shared \
-I$(top_srcdir)/mgmt \ -I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/api/include \ -I$(top_srcdir)/mgmt/api/include \
-I$(top_srcdir)/mgmt/cluster \ -I$(top_srcdir)/mgmt/cluster \
Expand Down Expand Up @@ -100,8 +101,8 @@ traffic_manager_LDADD = \
$(top_builddir)/lib/records/libreclocal.a \ $(top_builddir)/lib/records/libreclocal.a \
$(top_builddir)/lib/ts/libtsutil.la \ $(top_builddir)/lib/ts/libtsutil.la \
$(top_builddir)/iocore/eventsystem/libinkevent.a \ $(top_builddir)/iocore/eventsystem/libinkevent.a \
$(top_builddir)/proxy/liberror.a \ $(top_builddir)/proxy/shared/liberror.a \
$(top_builddir)/proxy/libdiagsconfig.a \ $(top_builddir)/proxy/shared/libdiagsconfig.a \
@LIBRESOLV@ @LIBEXPAT@ @LIBPCRE@ @LIBTCL@ @LIBCAP@ \ @LIBRESOLV@ @LIBEXPAT@ @LIBPCRE@ @LIBTCL@ @LIBCAP@ \
-lm -lm


Expand Down
2 changes: 1 addition & 1 deletion mgmt/api/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ libmgmtapilocal_a_SOURCES = \
TSControlMain.cc \ TSControlMain.cc \
TSControlMain.h TSControlMain.h


lib_LTLIBRARIES = libtsmgmt.la libtsmgmtshare.la lib_LTLIBRARIES = libtsmgmtshare.la libtsmgmt.la
libtsmgmtshare_la_SOURCES = \ libtsmgmtshare_la_SOURCES = \
CfgContextImpl.cc \ CfgContextImpl.cc \
CfgContextImpl.h \ CfgContextImpl.h \
Expand Down
36 changes: 12 additions & 24 deletions proxy/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


# Note that hdrs is targeted from ../Makefile.am # Note that hdrs is targeted from ../Makefile.am
if STANDALONE_IOCORE if STANDALONE_IOCORE
noinst_LIBRARIES = libTrafficServerStandalone.a liberror.a libdiagsconfig.a libUglyLogStubs.a noinst_LIBRARIES = libTrafficServerStandalone.a
bin_PROGRAMS = bin_PROGRAMS =
else else
SUBDIRS = congest http logging config SUBDIRS = congest http logging config
Expand Down Expand Up @@ -46,6 +46,7 @@ AM_CPPFLAGS = \
-I$(srcdir)/logging \ -I$(srcdir)/logging \
-I$(srcdir)/http/remap \ -I$(srcdir)/http/remap \
-I$(srcdir)/hdrs \ -I$(srcdir)/hdrs \
-I$(srcdir)/shared \
-I$(top_srcdir)/mgmt \ -I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/preparse \ -I$(top_srcdir)/mgmt/preparse \
-I$(top_srcdir)/mgmt/utils \ -I$(top_srcdir)/mgmt/utils \
Expand Down Expand Up @@ -80,11 +81,7 @@ traffic_server_SOURCES = \
ControlMatcher.h \ ControlMatcher.h \
CoreUtils.cc \ CoreUtils.cc \
CoreUtils.h \ CoreUtils.h \
DiagsConfig.cc \
DiagsConfig.h \
DynamicStats.h \ DynamicStats.h \
Error.cc \
Error.h \
EventName.cc \ EventName.cc \
HttpTransStats.h \ HttpTransStats.h \
ICP.cc \ ICP.cc \
Expand Down Expand Up @@ -144,6 +141,8 @@ traffic_server_LDADD = \
logging/liblogging.a \ logging/liblogging.a \
logging/liblogcollation.a \ logging/liblogcollation.a \
hdrs/libhdrs.a \ hdrs/libhdrs.a \
shared/liberror.a \
shared/libdiagsconfig.a \
$(top_builddir)/mgmt/preparse/libpreparse.a \ $(top_builddir)/mgmt/preparse/libpreparse.a \
$(top_builddir)/mgmt/utils/libutils_p.a \ $(top_builddir)/mgmt/utils/libutils_p.a \
$(top_builddir)/mgmt/libmgmt_p.a \ $(top_builddir)/mgmt/libmgmt_p.a \
Expand Down Expand Up @@ -180,12 +179,12 @@ endif
traffic_logcat_SOURCES = \ traffic_logcat_SOURCES = \
logcat.cc \ logcat.cc \
signals.cc \ signals.cc \
InkXml.cc \ InkXml.cc
DiagsConfig.cc \
UglyLogStubs.cc
traffic_logcat_LDFLAGS = @EXTRA_CXX_LDFLAGS@ @LIBTOOL_LINK_FLAGS@ traffic_logcat_LDFLAGS = @EXTRA_CXX_LDFLAGS@ @LIBTOOL_LINK_FLAGS@
traffic_logcat_LDADD = \ traffic_logcat_LDADD = \
logging/liblogging.a \ logging/liblogging.a \
shared/libdiagsconfig.a \
shared/libUglyLogStubs.a \
$(top_builddir)/mgmt/utils/libutils_p.a \ $(top_builddir)/mgmt/utils/libutils_p.a \
$(top_builddir)/mgmt/libmgmt_p.a \ $(top_builddir)/mgmt/libmgmt_p.a \
$(top_builddir)/lib/records/librecprocess.a \ $(top_builddir)/lib/records/librecprocess.a \
Expand All @@ -197,12 +196,12 @@ traffic_logcat_LDADD = \
traffic_logstats_SOURCES = \ traffic_logstats_SOURCES = \
logstats.cc \ logstats.cc \
signals.cc \ signals.cc \
InkXml.cc \ InkXml.cc
DiagsConfig.cc \
UglyLogStubs.cc
traffic_logstats_LDFLAGS = @EXTRA_CXX_LDFLAGS@ @LIBTOOL_LINK_FLAGS@ traffic_logstats_LDFLAGS = @EXTRA_CXX_LDFLAGS@ @LIBTOOL_LINK_FLAGS@
traffic_logstats_LDADD = \ traffic_logstats_LDADD = \
logging/liblogging.a \ logging/liblogging.a \
shared/libdiagsconfig.a \
shared/libUglyLogStubs.a \
$(top_builddir)/mgmt/utils/libutils_p.a \ $(top_builddir)/mgmt/utils/libutils_p.a \
$(top_builddir)/mgmt/libmgmt_p.a \ $(top_builddir)/mgmt/libmgmt_p.a \
$(top_builddir)/lib/records/librecprocess.a \ $(top_builddir)/lib/records/librecprocess.a \
Expand All @@ -225,9 +224,7 @@ traffic_sac_SOURCES = \
StatSystem.cc \ StatSystem.cc \
ReverseProxy.cc \ ReverseProxy.cc \
signals.cc \ signals.cc \
Error.cc \
EventName.cc \ EventName.cc \
DiagsConfig.cc \
StatPages.cc \ StatPages.cc \
PluginVC.cc \ PluginVC.cc \
AbstractBuffer.cc \ AbstractBuffer.cc \
Expand All @@ -243,11 +240,13 @@ traffic_sac_SOURCES = \
traffic_sac_LDFLAGS = @EXTRA_CXX_LDFLAGS@ @LIBTOOL_LINK_FLAGS@ traffic_sac_LDFLAGS = @EXTRA_CXX_LDFLAGS@ @LIBTOOL_LINK_FLAGS@
traffic_sac_LDADD = \ traffic_sac_LDADD = \
http/libhttp.a \ http/libhttp.a \
shared/libdiagsconfig.a \
http/remap/libhttp_remap.a \ http/remap/libhttp_remap.a \
congest/libCongestionControl.a \ congest/libCongestionControl.a \
logging/liblogging.a \ logging/liblogging.a \
logging/liblogcollation.a \ logging/liblogcollation.a \
hdrs/libhdrs.a \ hdrs/libhdrs.a \
shared/liberror.a \
$(top_builddir)/mgmt/preparse/libpreparse.a \ $(top_builddir)/mgmt/preparse/libpreparse.a \
$(top_builddir)/mgmt/utils/libutils_p.a \ $(top_builddir)/mgmt/utils/libutils_p.a \
$(top_builddir)/mgmt/libmgmt_p.a \ $(top_builddir)/mgmt/libmgmt_p.a \
Expand All @@ -271,23 +270,12 @@ endif


libTrafficServerStandalone_a_SOURCES = \ libTrafficServerStandalone_a_SOURCES = \
signals.cc \ signals.cc \
Error.cc \
EventName.cc \ EventName.cc \
DiagsConfig.cc \
StatPages.cc \ StatPages.cc \
StatSystem.cc \ StatSystem.cc \
AbstractBuffer.cc \ AbstractBuffer.cc \
Initialize.cc Initialize.cc


liberror_a_SOURCES = \
Error.cc

libdiagsconfig_a_SOURCES = \
DiagsConfig.cc

libUglyLogStubs_a_SOURCES = \
UglyLogStubs.cc

test_xml_parser_SOURCES = test_xml_parser.cc InkXml.cc test_xml_parser_SOURCES = test_xml_parser.cc InkXml.cc
test_xml_parser_LDADD = \ test_xml_parser_LDADD = \
$(top_builddir)/lib/records/librecprocess.a \ $(top_builddir)/lib/records/librecprocess.a \
Expand Down
1 change: 1 addition & 0 deletions proxy/congest/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/mgmt \ -I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/preparse \ -I$(top_srcdir)/mgmt/preparse \
-I$(top_srcdir)/mgmt/utils \ -I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/proxy/shared \
-I$(top_srcdir)/proxy/hdrs -I$(top_srcdir)/proxy/hdrs


noinst_LIBRARIES = libCongestionControl.a noinst_LIBRARIES = libCongestionControl.a
Expand Down
1 change: 1 addition & 0 deletions proxy/http/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/mgmt/preparse \ -I$(top_srcdir)/mgmt/preparse \
-I$(top_srcdir)/mgmt/utils \ -I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/proxy/hdrs \ -I$(top_srcdir)/proxy/hdrs \
-I$(top_srcdir)/proxy/shared \
-I$(top_srcdir)/proxy/http/remap \ -I$(top_srcdir)/proxy/http/remap \
-I$(top_srcdir)/proxy/logging -I$(top_srcdir)/proxy/logging


Expand Down
1 change: 1 addition & 0 deletions proxy/http/remap/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/mgmt \ -I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/utils \ -I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/proxy/hdrs \ -I$(top_srcdir)/proxy/hdrs \
-I$(top_srcdir)/proxy/shared \
-I$(top_srcdir)/proxy/http -I$(top_srcdir)/proxy/http


noinst_LIBRARIES = libhttp_remap.a noinst_LIBRARIES = libhttp_remap.a
Expand Down
1 change: 1 addition & 0 deletions proxy/logging/Makefile.am
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/proxy/http \ -I$(top_srcdir)/proxy/http \
-I$(top_srcdir)/proxy/http/remap \ -I$(top_srcdir)/proxy/http/remap \
-I$(top_srcdir)/proxy/hdrs \ -I$(top_srcdir)/proxy/hdrs \
-I$(top_srcdir)/proxy/shared \
-I$(top_srcdir)/mgmt \ -I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/preparse \ -I$(top_srcdir)/mgmt/preparse \
-I$(top_srcdir)/mgmt/utils -I$(top_srcdir)/mgmt/utils
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
52 changes: 52 additions & 0 deletions proxy/shared/Makefile.am
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,52 @@
# proxy Makefile.am
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Note that hdrs is targeted from ../Makefile.am
noinst_LIBRARIES = liberror.a libdiagsconfig.a libUglyLogStubs.a
bin_PROGRAMS =

AM_CPPFLAGS = \
$(iocore_include_dirs) \
-I$(top_srcdir)/lib/records \
-I$(top_srcdir)/lib/ts \
-I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/web2 \
-I$(top_srcdir)/mgmt/api \
-I$(top_srcdir)/mgmt/api/include \
-I$(top_srcdir)/mgmt/cluster \
-I$(top_srcdir)/mgmt/preparse \
-I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/. \
-I$(top_builddir)/proxy \
-I$(top_builddir)/proxy/api/ts \
-I$(top_srcdir)/proxy \
-I$(top_srcdir)/proxy/http \
-I$(top_srcdir)/proxy/hdrs \
-I$(top_srcdir)/proxy/api/ts \
-I$(top_srcdir)/proxy/logging \
-I$(top_srcdir)/lib

liberror_a_SOURCES = \
Error.cc

libdiagsconfig_a_SOURCES = \
DiagsConfig.cc

libUglyLogStubs_a_SOURCES = \
UglyLogStubs.cc

File renamed without changes.

0 comments on commit efe90f3

Please sign in to comment.