1## ****************************************************************************
2##
3##  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4##  more contributor license agreements.  See the NOTICE file distributed
5##  with this work for additional information regarding copyright ownership.
6##  Accellera licenses this file to you under the Apache License, Version 2.0
7##  (the "License"); you may not use this file except in compliance with the
8##  License.  You may obtain a copy of the License at
9##
10##   http://www.apache.org/licenses/LICENSE-2.0
11##
12##  Unless required by applicable law or agreed to in writing, software
13##  distributed under the License is distributed on an "AS IS" BASIS,
14##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15##  implied.  See the License for the specific language governing
16##  permissions and limitations under the License.
17##
18## ****************************************************************************
19##
20##  src/tlm_core/Makefile.am --
21##  Process this file with automake to produce a Makefile.in file.
22##
23##  Original Author: Philipp A. Hartmann, OFFIS, 2013-05-17
24##
25## ****************************************************************************
26##
27##  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
28##  changes you are making here.
29##
30##      Name, Affiliation, Date:
31##  Description of Modification:
32##
33## ****************************************************************************
34
35include $(top_srcdir)/config/Make-rules.sysc
36
37H_FILES = \
38	tlm_2/tlm_version.h \
39	tlm_2/tlm_2_interfaces/tlm_2_interfaces.h \
40	tlm_2/tlm_2_interfaces/tlm_dmi.h \
41	tlm_2/tlm_2_interfaces/tlm_fw_bw_ifs.h \
42	\
43	tlm_2/tlm_generic_payload/tlm_array.h \
44	tlm_2/tlm_generic_payload/tlm_endian_conv.h \
45	tlm_2/tlm_generic_payload/tlm_generic_payload.h \
46	tlm_2/tlm_generic_payload/tlm_gp.h \
47	tlm_2/tlm_generic_payload/tlm_helpers.h \
48	tlm_2/tlm_generic_payload/tlm_phase.h \
49	\
50	tlm_2/tlm_quantum/tlm_global_quantum.h \
51	tlm_2/tlm_quantum/tlm_quantum.h \
52	\
53	tlm_2/tlm_sockets/tlm_base_socket_if.h \
54	tlm_2/tlm_sockets/tlm_initiator_socket.h \
55	tlm_2/tlm_sockets/tlm_sockets.h \
56	tlm_2/tlm_sockets/tlm_target_socket.h \
57	\
58	tlm_1/tlm_analysis/tlm_analysis.h \
59	tlm_1/tlm_analysis/tlm_analysis_fifo.h \
60	tlm_1/tlm_analysis/tlm_analysis_if.h \
61	tlm_1/tlm_analysis/tlm_analysis_port.h \
62	tlm_1/tlm_analysis/tlm_analysis_triple.h \
63	tlm_1/tlm_analysis/tlm_write_if.h \
64	\
65	tlm_1/tlm_req_rsp/tlm_req_rsp.h \
66	tlm_1/tlm_req_rsp/tlm_1_interfaces/tlm_core_ifs.h \
67	tlm_1/tlm_req_rsp/tlm_1_interfaces/tlm_fifo_ifs.h \
68	tlm_1/tlm_req_rsp/tlm_1_interfaces/tlm_master_slave_ifs.h \
69	tlm_1/tlm_req_rsp/tlm_1_interfaces/tlm_tag.h \
70	\
71	tlm_1/tlm_req_rsp/tlm_adapters/tlm_adapters.h \
72	\
73	tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/circular_buffer.h \
74	tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/tlm_fifo.h \
75	tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/tlm_fifo_peek.h \
76	tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/tlm_fifo_put_get.h \
77	tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/tlm_fifo_resize.h \
78	tlm_1/tlm_req_rsp/tlm_channels/tlm_req_rsp_channels/tlm_put_get_imp.h \
79	tlm_1/tlm_req_rsp/tlm_channels/tlm_req_rsp_channels/tlm_req_rsp_channels.h \
80	\
81	tlm_1/tlm_req_rsp/tlm_ports/tlm_event_finder.h \
82	tlm_1/tlm_req_rsp/tlm_ports/tlm_nonblocking_port.h
83
84CXX_FILES = \
85	tlm_2/tlm_generic_payload/tlm_gp.cpp \
86	tlm_2/tlm_generic_payload/tlm_phase.cpp \
87	tlm_2/tlm_quantum/tlm_global_quantum.cpp
88
89EXTRA_DIST += \
90	tlm_1/README.txt \
91	tlm_2/README.txt
92
93INCDIRS = \
94	tlm_2/tlm_2_interfaces \
95	tlm_2/tlm_generic_payload \
96	tlm_2/tlm_quantum \
97	tlm_2/tlm_sockets \
98	tlm_2 \
99	tlm_1/tlm_analysis \
100	tlm_1/tlm_req_rsp/tlm_1_interfaces \
101	tlm_1/tlm_req_rsp/tlm_adapters \
102	tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo \
103	tlm_1/tlm_req_rsp/tlm_channels/tlm_req_rsp_channels \
104	tlm_1/tlm_req_rsp/tlm_channels \
105	tlm_1/tlm_req_rsp/tlm_ports \
106	tlm_1/tlm_req_rsp \
107	tlm_1
108
109localincludedir = $(includedir)/tlm_core
110nobase_localinclude_HEADERS = $(H_FILES)
111
112noinst_LTLIBRARIES = libtlm_core.la
113libtlm_core_la_SOURCES = $(NO_H_FILES) $(CXX_FILES)
114
115uninstall-hook:
116	test ! -d "$(localincludedir)" || ( set -e ; cd "$(localincludedir)"; \
117	  for dir in $(INCDIRS) ; do test ! -d $$dir || rmdir $$dir ; done ; \
118	  cd - ; rmdir "$(localincludedir)" )
119