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 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 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 80
#
# Makefile.am for http module
#

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

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

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

noinst_LIBRARIES = 	libhttp.a
bin_PROGRAMS =          
noinst_PROGRAMS = 	http_test http_objs.o

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) 

libhttp_a_SOURCES = 	$(INTERNAL_H) \
			http_parser.c http_header.c \
			http_basic.c http_extra.c \
			http_status.c http_tag_class.c \
			$(BUILT_C)

http_objs_o_SOURCES =	$(libhttp_a_SOURCES)
http_objs_o_LDADD =	

LDADD = 		libhttp.a \
			-L../bnf -lbnf \
			-L../msg -lmsg \
			-L../url -lurl \
			-L../su -lsu

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