Commit af5260a7 authored by Pekka Pessi's avatar Pekka Pessi

Tried to fix automatic generation of source files.

darcs-hash:20051125161235-65a35-a326b09c956bebe30c7b789e5070de3219b9fb47.gz
parent 5eaf0182
......@@ -62,18 +62,17 @@ EXTRA_DIST = Doxyfile http.docs \
include ../sofia.am
TAG_DLL_FLAGS = DLLREF=1
TAG_DLL_FLAGS = DLLREF=1
s = $(srcdir)
m = $(top_srcdir)/libsofia-sip-ua/msg
MSG_PARSER_AWK = $(srcdir)/../msg/msg_parser.awk
$s/http_parser_table.c: $m/msg_parser.awk $s/http.h $s/http_parser_table.c.in
$(AWK) -f $m/msg_parser.awk module=http PT=$@ \
MC_HASH_SIZE=127 $s/http.h
AWK_MSG_AWK = $(AWK) -f $(MSG_PARSER_AWK) module=http
$s/http_%.h: $m/msg_parser.awk $s/http_%.h.in $s/http.h
$(AWK) -f $m/msg_parser.awk module=http PR=$@ $s/http.h
http_%.h: http_%.h.in $(MSG_PARSER_AWK)
http_%.c: http_%.c.in $(MSG_PARSER_AWK)
$s/http_%.c: $m/msg_parser.awk $s/http_%.c.in $s/http.h
$(AWK) -f $m/msg_parser.awk module=http PR=$@ $s/http.h
http_tag.c http_tag_ref.c http_protos.h http_tag.h: http.h
$(AWK_MSG_AWK) PR=$@ $<
http_parser_table.c: http.h
$(AWK_MSG_AWK) PT=$@ MC_HASH_SIZE=127 MC_SHORT_SIZE=26 $<
......@@ -35,8 +35,7 @@ libmsg_la_SOURCES = $(INTERNAL_H) \
msg_mime.c msg_mime_table.c \
msg_header_copy.c msg_header_make.c \
msg_parser.c msg_mclass.c msg_parser_util.c \
msg_basic.c msg_generic.c msg_date.c msg_auth.c \
memspn.c
msg_basic.c msg_generic.c msg_date.c msg_auth.c
COVERAGE_INPUT = $(libmsg_la_SOURCES) $(include_sofia_HEADERS)
......@@ -79,30 +78,23 @@ MSG_PARSER_AWK = $(srcdir)/msg_parser.awk
AWK_MSG_AWK = $(AWK) -f $(MSG_PARSER_AWK)
test_protos.h test_table.c: $(MSG_PARSER_AWK)
test_protos.h: test_protos.h.in
test_table.c: test_table.c.in
%.h: %.h.in $(MSG_PARSER_AWK)
%.c: %.c.in $(MSG_PARSER_AWK)
test_protos.h: test_class.h
$(AWK_MSG_AWK) module=msg_test PR=$@ NO_MIDDLE=1 NO_LAST=1 $<
$(AWK_MSG_AWK) module=msg_test NO_MIDDLE=1 NO_LAST=1 \
PR=$@ TEMPLATE=$(srcdir)/$@.in $<
test_table.c: test_class.h
$(AWK_MSG_AWK) module=msg_test prefix=msg PT=$@ \
MC_HASH_SIZE=127 multipart=msg_multipart $<
msg_protos.h msg_mime_protos.h msg_mime_table.c: $(MSG_PARSER_AWK)
msg_protos.h: msg_protos.h.in
msg_mime_protos.h: msg_mime_protos.h.in
msg_mime_table.c: msg_mime_table.c.in
msg_protos.h: msg_mime.h
$(AWK_MSG_AWK) PR=$@ module=msg NO_FIRST=1 NO_MIDDLE=1 $<
$(AWK_MSG_AWK) module=msg_test prefix=msg \
MC_HASH_SIZE=127 multipart=msg_multipart \
PT=$@ $<
msg_mime_protos.h: msg_mime.h
$(AWK_MSG_AWK) PR=$@ module=msg NO_FIRST=1 NO_LAST=1 $<
msg_mime_protos.h msg_protos.h: msg_mime.h
$(AWK_MSG_AWK) module=msg NO_FIRST=1 NO_MIDDLE=1 \
PR=$@ TEMPLATE=$(srcdir)/$@.in $<
msg_mime_table.c: msg_mime.h
$(AWK_MSG_AWK) module=msg_multipart tprefix=msg prefix=mp PT=$@ \
MC_HASH_SIZE=127 $<
$(AWK_MSG_AWK) module=msg_multipart \
tprefix=msg prefix=mp MC_HASH_SIZE=127 \
PT=$@ $<
......@@ -102,23 +102,22 @@ dist_noinst_SCRIPTS = run_sip_test_msg run_date_test
include ../sofia.am
s = $(srcdir)
m = $(s)/../msg
MSG_PARSER_AWK = $(srcdir)/../msg/msg_parser.awk
SIP_H = $s/sip.h
AWK_MSG_AWK = $(AWK) -f $(MSG_PARSER_AWK) module=sip
#
# Note: sip_bad_mask is used by nta to weed out bad messages
#
$s/sip_parser_table.c: \
$m/msg_parser.awk $s/sip_parser_table.c.in \
${SIP_H} $s/sip_bad_mask
$(AWK) -f $m/msg_parser.awk module=sip PT=$@ \
FLAGFILE=$s/sip_bad_mask \
MC_HASH_SIZE=127 MC_SHORT_SIZE=26 ${SIP_H}
$s/sip_%.h: $m/msg_parser.awk $s/sip_%.h.in ${SIP_H}
$(AWK) -f $m/msg_parser.awk module=sip PR=$@ ${SIP_H}
$s/sip_%.c: $m/msg_parser.awk $s/sip_%.c.in ${SIP_H}
$(AWK) -f $m/msg_parser.awk module=sip PR=$@ ${SIP_H}
sip_parser_table.c: sip_bad_mask
sip_%.h: sip_%.h.in $(MSG_PARSER_AWK)
sip_%.c: sip_%.c.in $(MSG_PARSER_AWK)
sip_tag.c sip_tag_ref.c sip_hclasses.h sip_protos.h sip_tag.h: sip.h
$(AWK_MSG_AWK) PR=$@ $<
sip_parser_table.c: sip.h
$(AWK_MSG_AWK) PT=$@ FLAGFILE=$(srcdir)/sip_bad_mask \
MC_HASH_SIZE=127 MC_SHORT_SIZE=26 $<
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