Annotation of embedaddon/libpdel/structs/test/GNUmakefile, revision 1.1.1.1

1.1       misho       1: # $Id: GNUmakefile,v 1.8 2004/06/03 21:18:42 archie Exp $
                      2: 
                      3: prefix=                /usr/local
                      4: srcs=          main.c
                      5: objs=          $(srcs:.c=.o)
                      6: prog=          structs_test
                      7: CFLAGS=                -I$(prefix)/include -Wall -DNO_BPF -DOPENSSL_NO_KRB5
                      8: cc=            cc
                      9: 
                     10: $(prog):       $(objs)
                     11:        $(cc) -o $@ $(objs) -L$(prefix)/lib \
                     12:                -lpdel -lssl -lcrypto -lexpat -lpthread
                     13: 
                     14: %.o:           %.c
                     15:        $(cc) -c -o $@ $(CFLAGS) $+
                     16: 
                     17: # test target
                     18: test:
                     19:        grep -v bpf < structs_test.xml | ./structs_test -ncx > structs_test.nrm
                     20:        grep -v bpf < structs_test.xml | ./structs_test -ecx > structs_test.bin
                     21:        ./structs_test -dx < structs_test.bin | diff -u structs_test.nrm -
                     22:        grep -v bpf < structs_test.xml | ./structs_test -tcx \
                     23:                > structs_test.xmlrpc
                     24:        ./structs_test -Tcx < structs_test.xmlrpc | diff -u structs_test.nrm -
                     25:        grep -v bpf < structs_test.xml | ./structs_test -c
                     26: 
                     27: clean:
                     28:        rm -f $(prog) $(objs)
                     29:        rm -f structs_test.bin structs_test.nrm structs_test.xmlrpc
                     30: 

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