File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libpdel / structs / xmlrpc-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, 10 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 arrayOfStructsTest.c countTheEntities.c \
		easyStructTest.c echoStructTest.c manyTypesTest.c \
		moderateSizeArrayCheck.c nestedStructTest.c \
		simpleStructReturnTest.c uname.c
objs=		$(srcs:.c=.o)
prog=		xmlrpc_test
CFLAGS=		-I$(prefix)/include -Wall -DOPENSSL_NO_KRB5
cc=		cc

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

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

uname.c:	GNUmakefile
	(  HOST_OS=`uname -s`; HOST_ARCH=`uname -m`; \
	    echo '#include "xmlrpc_test.h"'; \
	    echo -n 'const char host_os[] = "'; \
	    echo -n $${HOST_OS}; \
	    echo '";'; \
	    echo -n 'const char host_arch[] = "'; \
	    echo -n $${HOST_ARCH}; \
	    echo '";' ) \
	> $@

clean:
	rm -f $(prog) $(objs) uname.c


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