Commit 21f6d3fa authored by Pekka Pessi's avatar Pekka Pessi

Makefile.am in msg, http, sip: fixed source generation for gmake

darcs-hash:20070228185958-55b16-6c05cac68df81d0308c1f994c77aafb13ad224c4.gz
parent 0f5f3b97
......@@ -30,9 +30,9 @@ PUBLIC_H = sofia-sip/http.h sofia-sip/http_header.h \
sofia-sip/http_status.h sofia-sip/http_hclasses.h
BUILT_H = sofia-sip/http_protos.h sofia-sip/http_tag.h
BUILT_C = http_tag.c http_tag_ref.c http_parser_table.c
BUILT_C = http_tag.c http_parser_table.c
BUILT_SOURCES = $(BUILT_H) $(BUILT_C)
BUILT_SOURCES = $(BUILT_H) $(BUILT_C) http_tag_ref.c
nobase_include_sofia_HEADERS = $(BUILT_H) $(PUBLIC_H)
......@@ -40,7 +40,7 @@ libhttp_la_SOURCES = $(INTERNAL_H) \
http_parser.c http_header.c \
http_basic.c http_extra.c http_inlined.c \
http_status.c http_tag_class.c \
$(BUILT_C)
$(BUILT_SOURCES)
COVERAGE_INPUT = $(libhttp_la_SOURCES) $(include_sofia_HEADERS)
......@@ -75,17 +75,19 @@ AWK_HTTP_AWK = ${AWK} -f ${MSG_PARSER_AWK} module=http
SS_HTTP_H = ${srcdir}/sofia-sip/http.h
sofia-sip/http_protos.h: ${SS_HTTP_H} ${srcdir}/$@.in ${MSG_PARSER_AWK}
${BUILT_H} ${BUILT_C}: ${srcdir}/sofia-sip/http.h ${MSG_PARSER_AWK}
sofia-sip/http_protos.h: ${srcdir}/sofia-sip/http_protos.h.in
@-mkdir sofia-sip 2>/dev/null || true
${AWK_HTTP_AWK} PR=$@ TEMPLATE=${srcdir}/$@.in ${SS_HTTP_H}
sofia-sip/http_tag.h: ${SS_HTTP_H} ${srcdir}/$@.in ${MSG_PARSER_AWK}
sofia-sip/http_tag.h: ${srcdir}/sofia-sip/http_tag.h.in
@-mkdir sofia-sip 2>/dev/null || true
${AWK_HTTP_AWK} PR=$@ TEMPLATE=${srcdir}/$@.in ${SS_HTTP_H}
http_tag.c: ${SS_HTTP_H} ${srcdir}/$@.in ${MSG_PARSER_AWK}
http_tag.c: ${srcdir}/http_tag.c.in
${AWK_HTTP_AWK} PR=$@ TEMPLATE=${srcdir}/$@.in ${SS_HTTP_H}
http_parser_table.c: ${SS_HTTP_H} ${srcdir}/$@.in ${MSG_PARSER_AWK}
http_parser_table.c: ${srcdir}/http_parser_table.c.in
${AWK_HTTP_AWK} PT=$@ TEMPLATE=${srcdir}/$@.in \
MC_HASH_SIZE=127 ${SS_HTTP_H}
......@@ -35,9 +35,11 @@ INTERNAL_H = msg_internal.h test_class.h
nobase_include_sofia_HEADERS = \
$(GENERATED_H) $(PUBLIC_H)
BUILT_SOURCES = $(GENERATED_H) msg_mime_table.c test_table.c test_protos.h
GENERATED_HC = $(GENERATED_H) msg_mime_table.c test_table.c test_protos.h
libmsg_la_SOURCES = $(INTERNAL_H) \
BUILT_SOURCES = $(GENERATED_HC)
libmsg_la_SOURCES = msg_internal.h \
msg.c msg_tag.c msg_inlined.c \
msg_mime.c msg_mime_table.c \
msg_header_copy.c msg_header_make.c \
......@@ -46,7 +48,8 @@ libmsg_la_SOURCES = $(INTERNAL_H) \
COVERAGE_INPUT = $(libmsg_la_SOURCES) $(include_sofia_HEADERS)
libtest_msg_a_SOURCES = test_class.c test_table.c test_inlined.c test_protos.h
libtest_msg_a_SOURCES = test_class.c test_class.h \
test_table.c test_inlined.c test_protos.h
LDADD = libtest_msg.a libmsg.la \
../bnf/libbnf.la \
......@@ -84,39 +87,37 @@ MSG_PARSER_AWK = $(srcdir)/msg_parser.awk
AWK_MSG_AWK = $(AWK) -f $(MSG_PARSER_AWK)
test_protos.h: test_protos.h.in $(MSG_PARSER_AWK)
test_table.c: test_table.c.in $(MSG_PARSER_AWK)
sofia-sip/msg_mime_protos.h: sofia-sip/msg_mime_protos.h.in
sofia-sip/msg_protos.h: sofia-sip/msg_protos.h.in
msg_mime_table.c: msg_mime_table.c.in $(MSG_PARSER_AWK)
sofia-sip/msg_mime_protos.h sofia-sip/msg_protos.h: $(MSG_PARSER_AWK)
${GENERATED_HC}: ${MSG_PARSER_AWK}
TEST_CLASS_H = ${srcdir}/test_class.h
test_protos.h: ${TEST_CLASS_H}
test_protos.h test_table.c: ${TEST_CLASS_H}
test_protos.h: ${srcdir}/test_protos.h.in
$(AWK_MSG_AWK) module=msg_test NO_MIDDLE=1 NO_LAST=1 \
PR=$@ TEMPLATE=$(srcdir)/$@.in ${TEST_CLASS_H}
test_table.c: ${TEST_CLASS_H}
test_table.c: ${srcdir}/test_table.c.in
$(AWK_MSG_AWK) module=msg_test prefix=msg \
MC_HASH_SIZE=127 multipart=msg_multipart \
PT=$@ TEMPLATE=$(srcdir)/$@.in ${TEST_CLASS_H}
SS_MIME_H = ${srcdir}/sofia-sip/msg_mime.h
sofia-sip/msg_protos.h: ${SS_MIME_H}
sofia-sip/msg_protos.h sofia-sip/msg_mime_protos.h: ${SS_MIME_H}
msg_mime_table.c: ${SS_MIME_H}
sofia-sip/msg_protos.h: ${srcdir}/sofia-sip/msg_protos.h.in
@-mkdir sofia-sip 2>/dev/null || true
$(AWK_MSG_AWK) module=msg NO_FIRST=1 NO_MIDDLE=1 \
PR=$@ TEMPLATE=$(srcdir)/$@.in ${SS_MIME_H}
sofia-sip/msg_mime_protos.h: ${SS_MIME_H}
sofia-sip/msg_mime_protos.h: ${srcdir}/sofia-sip/msg_mime_protos.h.in
@-mkdir sofia-sip 2>/dev/null || true
$(AWK_MSG_AWK) module=msg NO_FIRST=1 NO_LAST=1 \
PR=$@ TEMPLATE=$(srcdir)/$@.in ${SS_MIME_H}
msg_mime_table.c: ${SS_MIME_H}
msg_mime_table.c: ${srcdir}/msg_mime_table.c.in
$(AWK_MSG_AWK) module=msg_multipart \
tprefix=msg prefix=mp MC_HASH_SIZE=127 \
PT=$@ TEMPLATE=$(srcdir)/$@.in ${SS_MIME_H}
......@@ -25,6 +25,7 @@ check_PROGRAMS = torture_sip \
GENERATED_H = sofia-sip/sip_hclasses.h \
sofia-sip/sip_protos.h sofia-sip/sip_tag.h \
sofia-sip/sip_extra.h
H_IN = sofia-sip/sip_hclasses.h.in \
sofia-sip/sip_protos.h.in sofia-sip/sip_tag.h.in \
sofia-sip/sip_extra.h.in
......@@ -33,9 +34,9 @@ PUBLIC_H = sofia-sip/sip.h sofia-sip/sip_util.h \
sofia-sip/sip_header.h sofia-sip/sip_parser.h \
sofia-sip/sip_tag_class.h sofia-sip/sip_status.h
GENERATED_C = sip_tag.c sip_tag_ref.c sip_parser_table.c
GENERATED_C = sip_tag.c sip_parser_table.c
BUILT_SOURCES = $(GENERATED_H) $(GENERATED_C)
BUILT_SOURCES = $(GENERATED_H) $(GENERATED_C) sip_tag_ref.c
nobase_include_sofia_HEADERS = $(GENERATED_H) $(PUBLIC_H) $(H_IN)
......@@ -47,7 +48,7 @@ libsip_la_SOURCES = $(INTERNAL_H) \
sip_caller_prefs.c sip_reason.c \
sip_status.c sip_time.c \
sip_tag_class.c sip_inlined.c \
$(GENERATED_C)
$(BUILT_SOURCES)
COVERAGE_INPUT = $(libsip_la_SOURCES) $(include_sofia_HEADERS)
......@@ -107,45 +108,36 @@ MSG_PARSER_AWK = $(srcdir)/../msg/msg_parser.awk
AWK_SIP_AWK = $(AWK) -f $(MSG_PARSER_AWK) module=sip
#
# Note: sip_bad_mask is used by nta to weed out bad messages
#
sip_parser_table.c: sip_bad_mask
sofia-sip/sip_hclasses.h: sofia-sip/sip_hclasses.h.in
sofia-sip/sip_protos.h: sofia-sip/sip_protos.h.in
sofia-sip/sip_tag.h: sofia-sip/sip_tag.h.in
${GENERATED_H}: ${MSG_PARSER_AWK}
sip_parser_table.c: sip_parser_table.c.in ${MSG_PARSER_AWK}
sip_tag.c: sip_tag.c.in ${MSG_PARSER_AWK}
SS_SIP_H = ${srcdir}/sofia-sip/sip.h
EXTRA = ${srcdir}/sip_extra_headers.txt
sofia-sip/sip_hclasses.h: ${SS_SIP_H} ${srcdir}/$@.in
${GENERATED_H} ${GENERATED_C}: ${SS_SIP_H} ${MSG_PARSER_AWK}
sofia-sip/sip_hclasses.h: ${srcdir}/sofia-sip/sip_hclasses.h.in
@-mkdir sofia-sip 2>/dev/null || true
${AWK_SIP_AWK} PR=$@ TEMPLATE=${srcdir}/$@.in ${SS_SIP_H}
sofia-sip/sip_protos.h: ${SS_SIP_H}
sofia-sip/sip_protos.h: ${srcdir}/sofia-sip/sip_protos.h.in
@-mkdir sofia-sip 2>/dev/null || true
${AWK_SIP_AWK} PR=$@ TEMPLATE=${srcdir}/$@.in ${SS_SIP_H}
sofia-sip/sip_tag.h: ${SS_SIP_H}
sofia-sip/sip_tag.h: ${srcdir}/sofia-sip/sip_tag.h.in
@-mkdir sofia-sip 2>/dev/null || true
${AWK_SIP_AWK} PR=$@ TEMPLATE=${srcdir}/$@.in ${SS_SIP_H}
sip_tag.c: ${SS_SIP_H} ${EXTRA}
sip_tag.c: ${srcdir}/sip_tag.c.in ${EXTRA}
${AWK_SIP_AWK} PR=$@ TEMPLATE=${srcdir}/$@.in ${SS_SIP_H} ${EXTRA}
sip_parser_table.c: ${SS_SIP_H} ${EXTRA}
# Note: sip_bad_mask is used by nta to weed out bad messages
sip_parser_table.c: ${srcdir}/sip_parser_table.c.in ${EXTRA} sip_bad_mask
${AWK_SIP_AWK} PT=$@ TEMPLATE=${srcdir}/$@.in \
FLAGFILE=${srcdir}/sip_bad_mask \
MC_HASH_SIZE=127 MC_SHORT_SIZE=26 \
${SS_SIP_H} ${EXTRA}
sofia-sip/sip_extra.h: ${srcdir}/$@.in ${EXTRA}
sofia-sip/sip_extra.h: ${srcdir}/sofia-sip/sip_extra.h.in ${EXTRA}
@-mkdir -p sofia-sip 2>/dev/null
${AWK_SIP_AWK} PR=$@ NO_FIRST=1 NO_LAST=1 \
PACKAGE_NAME="${PACKAGE_NAME}" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment