Commit b852aea8 authored by Pekka Pessi's avatar Pekka Pessi

Be explicit with input when generating source files.

darcs-hash:20060214162559-65a35-1362d3d11fc63148426c368dcbfe02c4277d6d81.gz
parent ebda127e
......@@ -5,10 +5,10 @@
# ----------------------------------------------------------------------
# Header paths
INCLUDES = -I$(srcdir)/../bnf \
-I$(srcdir)/../msg \
-I$(srcdir)/../url \
-I$(srcdir)/../su
INCLUDES = -I$(srcdir)/../bnf -I../bnf \
-I$(srcdir)/../msg -I../msg \
-I$(srcdir)/../url -I../url \
-I$(srcdir)/../su -I../su -I../su
# ----------------------------------------------------------------------
# Build targets
......@@ -53,9 +53,9 @@ test_http_LDFLAGS = -static
# Install and distribution rules
EXTRA_DIST = Doxyfile http.docs \
sofia-sip/http_parser_table.c.in \
sofia-sip/http_protos.h.in \
sofia-sip/http_tag.h.in \
http_parser_table.c.in \
http_tag.c.in
# ----------------------------------------------------------------------
......@@ -69,14 +69,14 @@ MSG_PARSER_AWK = $(srcdir)/../msg/msg_parser.awk
AWK_HTTP_AWK = $(AWK) -f $(MSG_PARSER_AWK) module=http
sofia-sip/http_tag.h: sofia-sip/http_tag.h.in $(MSG_PARSER_AWK)
sofia-sip/http_protos.h: sofia-sip/http_protos.h.in $(MSG_PARSER_AWK)
sofia-sip/http_tag.h: $(srcdir)/sofia-sip/http_tag.h.in $(MSG_PARSER_AWK)
sofia-sip/http_protos.h: $(srcdir)/sofia-sip/http_protos.h.in $(MSG_PARSER_AWK)
http_tag.c: http_tag.c.in $(MSG_PARSER_AWK)
http_parser_table.c: http_parser_table.c.in $(MSG_PARSER_AWK)
sofia-sip/http_tag.c sofia-sip/http_protos.h sofia-sip/http_tag.h: \
sofia-sip/http.h
http_tag.c $(BUILT_H): $(srcdir)/sofia-sip/http.h
@-mkdir sofia-sip 2>/dev/null
$(AWK_HTTP_AWK) PR=$@ TEMPLATE=$(srcdir)/$@.in $<
http_parser_table.c: sofia-sip/http.h
$(AWK_HTTP_AWK) PT=$@ MC_HASH_SIZE=127 $<
http_parser_table.c: $(srcdir)/sofia-sip/http.h
$(AWK_HTTP_AWK) PT=$@ TEMPLATE=$(srcdir)/$@.in MC_HASH_SIZE=127 $<
......@@ -5,9 +5,9 @@
# ----------------------------------------------------------------------
# Header paths
INCLUDES = -I$(srcdir)/../bnf \
-I$(srcdir)/../url \
-I$(srcdir)/../su
INCLUDES = -I$(srcdir)/../bnf -I../bnf \
-I$(srcdir)/../url -I../url \
-I$(srcdir)/../su -I../su
# ----------------------------------------------------------------------
# Build targets
......@@ -24,7 +24,7 @@ PUBLIC_H = sofia-sip/msg.h sofia-sip/msg_header.h \
sofia-sip/msg_types.h sofia-sip/msg_mclass.h \
sofia-sip/msg_mclass_hash.h sofia-sip/msg_parser.h \
sofia-sip/msg_addr.h sofia-sip/msg_date.h \
sofia-sip/msg_buffer.h sofia-sip/msg_tag_class.h
sofia-sip/msg_buffer.h sofia-sip/msg_tag_class.h \
sofia-sip/msg_mime.h
INTERNAL_H = msg_internal.h test_class.h
......@@ -62,9 +62,9 @@ sofialibexecdir = $(libexecdir)/sofia
dist_sofialibexec_SCRIPTS = msg_parser.awk
EXTRA_DIST = Doxyfile msg.docs \
msg_mime_protos.h.in \
sofia-sip/msg_mime_protos.h.in \
sofia-sip/msg_protos.h.in \
msg_mime_table.c.in \
msg_protos.h.in \
test_protos.h.in \
test_table.c.in
......@@ -85,28 +85,32 @@ 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 $(MSG_PARSER_AWK)
msg_mime_table.c: msg_mime_table.c.in $(MSG_PARSER_AWK)
sofia-sip/msg_protos.h: sofia-sip/msg_protos.h.in $(MSG_PARSER_AWK)
sofia-sip/msg_mime_protos.h: $(srcdir)/sofia-sip/msg_mime_protos.h.in
sofia-sip/msg_protos.h: $(srcdir)/sofia-sip/msg_protos.h.in
msg_mime_table.c: $(srcdir)/msg_mime_table.c.in $(MSG_PARSER_AWK)
test_protos.h: test_class.h
sofia-sip/msg_mime_protos.h sofia-sip/msg_protos.h: $(MSG_PARSER_AWK)
test_protos.h: $(srcdir)/test_class.h
$(AWK_MSG_AWK) module=msg_test NO_MIDDLE=1 NO_LAST=1 \
PR=$@ TEMPLATE=$(srcdir)/$@.in $<
test_table.c: test_class.h
test_table.c: $(srcdir)/test_class.h
$(AWK_MSG_AWK) module=msg_test prefix=msg \
MC_HASH_SIZE=127 multipart=msg_multipart \
PT=$@ $<
PT=$@ TEMPLATE=$(srcdir)/$@.in $<
sofia-sip/msg_protos.h: sofia-sip/msg_mime.h
sofia-sip/msg_protos.h: $(srcdir)/sofia-sip/msg_mime.h
@-mkdir sofia-sip 2>/dev/null
$(AWK_MSG_AWK) module=msg NO_FIRST=1 NO_MIDDLE=1 \
PR=$@ TEMPLATE=$(srcdir)/$@.in $<
sofia-sip/msg_mime_protos.h: sofia-sip/msg_mime.h
sofia-sip/msg_mime_protos.h: $(srcdir)/sofia-sip/msg_mime.h
@-mkdir sofia-sip 2>/dev/null
$(AWK_MSG_AWK) module=msg NO_FIRST=1 NO_LAST=1 \
PR=$@ TEMPLATE=$(srcdir)/$@.in $<
msg_mime_table.c: sofia-sip/msg_mime.h
msg_mime_table.c: $(srcdir)/sofia-sip/msg_mime.h
$(AWK_MSG_AWK) module=msg_multipart \
tprefix=msg prefix=mp MC_HASH_SIZE=127 \
PT=$@ $<
PT=$@ TEMPLATE=$(srcdir)/$@.in $<
......@@ -5,11 +5,11 @@
# ----------------------------------------------------------------------
# Header paths
INCLUDES = -I$(srcdir)/../bnf \
-I$(srcdir)/../ipt \
-I$(srcdir)/../msg \
-I$(srcdir)/../url \
-I$(srcdir)/../su
INCLUDES = -I$(srcdir)/../bnf -I../bnf \
-I$(srcdir)/../ipt -I../ipt \
-I$(srcdir)/../msg -I../msg \
-I$(srcdir)/../url -I../url \
-I$(srcdir)/../su -I../su
# ----------------------------------------------------------------------
# Build targets
......@@ -109,16 +109,21 @@ AWK_SIP_AWK = $(AWK) -f $(MSG_PARSER_AWK) module=sip
#
sip_parser_table.c: sip_bad_mask
sofia-sip/sip_hclasses.h: sofia-sip/sip_hclasses.h.in $(MSG_PARSER_AWK)
sofia-sip/sip_protos.h: sofia-sip/sip_protos.h.in $(MSG_PARSER_AWK)
sofia-sip/sip_tag.h: sofia-sip/sip_tag.h.in $(MSG_PARSER_AWK)
sofia-sip/sip_hclasses.h: $(srcdir)/sofia-sip/sip_hclasses.h.in
sofia-sip/sip_protos.h: $(srcdir)/sofia-sip/sip_protos.h.in
sofia-sip/sip_tag.h: $(srcdir)/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)
sip_tag.c sofia-sip/sip_hclasses.h sofia-sip/sip_protos.h sofia-sip/sip_tag.h:\
sofia-sip/sip.h
sip_tag.c $(GENERATED_H): $(srcdir)/sofia-sip/sip.h
@-mkdir sofia-sip 2>/dev/null
$(AWK_SIP_AWK) PR=$@ TEMPLATE=$(srcdir)/$@.in $<
sip_parser_table.c: sofia-sip/sip.h
$(AWK_SIP_AWK) PT=$@ FLAGFILE=$(srcdir)/sip_bad_mask \
sip_parser_table.c: $(srcdir)/sofia-sip/sip.h
@-mkdir sofia-sip 2>/dev/null
$(AWK_SIP_AWK) PT=$@ TEMPLATE=$(srcdir)/$@.in \
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