Return to GNUmakefile CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / libpdel / structs / xmlrpc-test |
1.1 ! misho 1: # $Id: GNUmakefile,v 1.7 2004/06/03 21:18:42 archie Exp $ ! 2: ! 3: prefix= /usr/local ! 4: srcs= main.c arrayOfStructsTest.c countTheEntities.c \ ! 5: easyStructTest.c echoStructTest.c manyTypesTest.c \ ! 6: moderateSizeArrayCheck.c nestedStructTest.c \ ! 7: simpleStructReturnTest.c uname.c ! 8: objs= $(srcs:.c=.o) ! 9: prog= xmlrpc_test ! 10: CFLAGS= -I$(prefix)/include -Wall -DOPENSSL_NO_KRB5 ! 11: cc= cc ! 12: ! 13: $(prog): $(objs) ! 14: $(cc) -o $@ $(objs) -L$(prefix)/lib \ ! 15: -lpdel -lssl -lcrypto -lexpat -lpthread ! 16: ! 17: %.o: %.c ! 18: $(cc) -c -o $@ $(CFLAGS) $+ ! 19: ! 20: uname.c: GNUmakefile ! 21: ( HOST_OS=`uname -s`; HOST_ARCH=`uname -m`; \ ! 22: echo '#include "xmlrpc_test.h"'; \ ! 23: echo -n 'const char host_os[] = "'; \ ! 24: echo -n $${HOST_OS}; \ ! 25: echo '";'; \ ! 26: echo -n 'const char host_arch[] = "'; \ ! 27: echo -n $${HOST_ARCH}; \ ! 28: echo '";' ) \ ! 29: > $@ ! 30: ! 31: clean: ! 32: rm -f $(prog) $(objs) uname.c ! 33: