File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libpdel / structs / test / GNUmakefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:25:53 2012 UTC (12 years, 8 months ago) by misho
Branches: libpdel, MAIN
CVS tags: v0_5_3, HEAD
libpdel

# $Id: GNUmakefile,v 1.1.1.1 2012/02/21 23:25:53 misho Exp $

prefix=		/usr/local
srcs=		main.c
objs=		$(srcs:.c=.o)
prog=		structs_test
CFLAGS=		-I$(prefix)/include -Wall -DNO_BPF -DOPENSSL_NO_KRB5
cc=		cc

$(prog):	$(objs)
	$(cc) -o $@ $(objs) -L$(prefix)/lib \
		-lpdel -lssl -lcrypto -lexpat -lpthread

%.o:		%.c
	$(cc) -c -o $@ $(CFLAGS) $+

# test target
test:
	grep -v bpf < structs_test.xml | ./structs_test -ncx > structs_test.nrm
	grep -v bpf < structs_test.xml | ./structs_test -ecx > structs_test.bin
	./structs_test -dx < structs_test.bin | diff -u structs_test.nrm -
	grep -v bpf < structs_test.xml | ./structs_test -tcx \
		> structs_test.xmlrpc
	./structs_test -Tcx < structs_test.xmlrpc | diff -u structs_test.nrm -
	grep -v bpf < structs_test.xml | ./structs_test -c

clean:
	rm -f $(prog) $(objs)
	rm -f structs_test.bin structs_test.nrm structs_test.xmlrpc


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>