Makefile.am 1.94 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#
# Makefile.am for http module
#

# ----------------------------------------------------------------------
# Header paths

INCLUDES = 	-I$(srcdir)/../bnf \
		-I$(srcdir)/../msg \
		-I$(srcdir)/../url \
		-I$(srcdir)/../su 

# ----------------------------------------------------------------------
# Build targets

Pekka Pessi's avatar
Pekka Pessi committed
16
noinst_LTLIBRARIES = 	libhttp.la
Pekka Pessi's avatar
Pekka Pessi committed
17
bin_PROGRAMS =          
Pekka Pessi's avatar
Pekka Pessi committed
18
noinst_PROGRAMS = 	http_test
Pekka Pessi's avatar
Pekka Pessi committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

TESTS = 		http_test

# ----------------------------------------------------------------------
# Rules for building the targets

PUBLIC_H = http.h http_header.h http_parser.h \
	   http_tag_class.h http_dll.h http_status.h http_hclasses.h

BUILT_H = http_protos.h http_tag.h 
BUILT_C = http_tag.c http_tag_ref.c http_parser_table.c

BUILT_SOURCES = $(BUILT_H) $(BUILT_C)

include_HEADERS = 	$(BUILT_H) $(PUBLIC_H) 

Pekka Pessi's avatar
Pekka Pessi committed
35
libhttp_la_SOURCES = 	$(INTERNAL_H) \
Pekka Pessi's avatar
Pekka Pessi committed
36 37 38 39 40
			http_parser.c http_header.c \
			http_basic.c http_extra.c \
			http_status.c http_tag_class.c \
			$(BUILT_C)

Pekka Pessi's avatar
Pekka Pessi committed
41
COVERAGE_INPUT = 	$(libhttp_la_SOURCES) $(include_HEADERS)
42

Pekka Pessi's avatar
Pekka Pessi committed
43 44 45 46 47
LDADD = 		libhttp.la \
			../bnf/libbnf.la \
			../msg/libmsg.la \
			../url/liburl.la \
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79

http_test_SOURCES = 	http_test.c 

# ----------------------------------------------------------------------
# Install and distribution rules

EXTRA_DIST =		Doxyfile http.docs \
			http_parser_table.c.in \
			http_protos.h.in \
			http_tag.c.in \
			http_tag.h.in 

# ----------------------------------------------------------------------
# Sofia specific rules

include ../sofia.am

TAG_DLL_FLAGS =		DLLREF=1

s = $(srcdir)
m = $(top_srcdir)/libsofia-sip-ua/msg

$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

$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

$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