X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2FMakefile;fp=client%2FMakefile;h=6ac9eed6566be4f5fc94849217d1d5eb48260c02;hb=b3be6bf5b31785568d39c3c1d631759df84d90ca;hp=0000000000000000000000000000000000000000;hpb=a8cbf4e58821b5a7e64063f6a1b50c453494167f;p=yaz-moved-to-github.git diff --git a/client/Makefile b/client/Makefile new file mode 100644 index 0000000..6ac9eed --- /dev/null +++ b/client/Makefile @@ -0,0 +1,59 @@ +# Copyright (C) 1994, Index Data I/S +# All rights reserved. +# Sebastian Hammer, Adam Dickmeiss +# $Id: Makefile,v 1.1 1995-05-22 11:30:30 quinn Exp $ + +LIBDIR=../lib + +#LIBMOSI=../../xtimosi/src/libmosi.a $(LIBDIR)/librfc.a + +SHELL=/bin/sh +INCLUDE=-I../include -I. -I../../xtimosi/src -I../../alex/include +LIBINCLUDE=-L$(LIBDIR) +#CFLAGS=-Wall -pedantic -g +DEFS=$(INCLUDE) -DRPN_QUERY +#LIB=$(LIBDIR)/libserver.a +LIBS=$(LIBDIR)/libserver.a $(LIBDIR)/libasn.a $(LIBDIR)/libodr.a \ + $(LIBDIR)/libcomstack.a ../lib/ccl.a $(LIBMOSI) $(LIBDIR)/libutil.a +#PO = +CPP=$(CC) -E +PROG=client +PROGO=client.o + +all: $(PROG) + +$(PROG): $(LIB) $(PROGO) + $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS) + +alll: + +$(LIB): $(PO) + rm -f $(LIB) + ar qc $(LIB) $(PO) + ranlib $(LIB) + +$(LIBDIR): + mkdir $(LIBDIR) + +.c.o: + $(CC) -c $(DEFS) $(CFLAGS) $< + +clean: + rm -f *.[oa] test core mon.out gmon.out errlist tst cli $(PROG) + +depend: depend2 +: +depend1: + mv Makefile Makefile.tmp + sed '/^#Depend/q' Makefile + $(CPP) $(INCLUDE) -M *.c >>Makefile + -rm Makefile.tmp + +depend2: + $(CPP) $(INCLUDE) -M *.c >.depend + +ifeq (.depend,$(wildcard .depend)) +include .depend +endif + +#Depend --- DOT NOT DELETE THIS LINE