# $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>