X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=comstack%2FMakefile;fp=comstack%2FMakefile;h=46f9770d1bf7ec180f4acf35b0e3b04e7794d26b;hb=8a425ff5328260fff0dcc28f08b5bdf6bfac84ab;hp=0000000000000000000000000000000000000000;hpb=c2af22077779cd65b746b2822b2b1478ea0619fe;p=yaz-moved-to-github.git diff --git a/comstack/Makefile b/comstack/Makefile new file mode 100644 index 0000000..46f9770 --- /dev/null +++ b/comstack/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-06-14 09:58:19 quinn Exp $ + + +LIBDIR=../lib + +#LIBOSI=../../xtimosi/src/libmosi.a $(LIBDIR)/librfc.a +#XMOSI=xmosi.o + +SHELL=/bin/sh +INCLUDE=-I../include -I. -I../../xtimosi/src +LIBINCLUDE=-L$(LIBDIR) -L../../xtimosi/src +#CFLAGS=-Wall -pedantic -g +#CFLAGS=-g +DEFS=$(INCLUDE) -DRPN_QUERY # -DTRACE_TCPIP +LIB= $(LIBDIR)/libcomstack.a +LIBS=$(LIBDIR)/libasn.a $(LIBDIR)/libodr.a $(LIBDIR)/libcomstack.a \ + ../lib/ccl.a $(LIBDIR)/libutil.a $(LIBMOSI) +PO = comstack.o tcpip.o $(XMOSI) +CPP=$(CC) -E +#CC=checkergcc + +all: $(LIBDIR) $(LIB) + +cli: tst.o $(LIB) + $(CC) $(CFLAGS) $(LIBINCLUDE) -o cli tst.o $(LIBINCLUDE) $(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 + +depend: depend2 + +depend1: + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile + +depend2: + $(CPP) $(INCLUDE) -M *.c >.depend + +ifeq (.depend,$(wildcard .depend)) +include .depend +endif + +#Depend --- DOT NOT DELETE THIS LINE