X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=server%2FMakefile;h=54f578dd70f1d6028b904c16ea13d7be6e6a5741;hb=68dc3fc2e6ea601cd36a5bf578ab8adb04ed23f3;hp=6830cc8c254bf98ed9ea5acd67649d8b7c3e681a;hpb=7e158942eb374e7211dd3dbd834e664c70a2d143;p=yaz-moved-to-github.git diff --git a/server/Makefile b/server/Makefile index 6830cc8..54f578d 100644 --- a/server/Makefile +++ b/server/Makefile @@ -1,19 +1,26 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.1 1995-03-10 18:22:44 quinn Exp $ +# $Id: Makefile,v 1.11 1995-03-16 13:28:59 quinn Exp $ SHELL=/bin/sh -INCLUDE=-I../include -I. -I../asn -I../odr -I../../egate/include -I../../xtimosi/src +INCLUDE=-I../include -I. -I../asn -I../odr -I../yazlib -I../../egate/include\ + -I../../xtimosi/src -I../../alex/include +LIBDIR=../../lib +LIBINCLUDE=-L$(LIBDIR) #CFLAGS=-Wall -pedantic -g -#CFLAGS=-g DEFS=$(INCLUDE) -LIB= server.a -PO = eventl.o +LIB=$(LIBDIR)/libserver.a +LIBS=$(LIBDIR)/libserver.a $(LIBDIR)/libasn.a $(LIBDIR)/libodr.a $(LIBDIR)/libcomstack.a ../../alex/lib/util.a ../../egate/lib/util.a +PO = eventl.o seshigh.o statserv.o CPP=cc -E -#CC=checkergcc +PROG=ztest +PROGO=ztest.o session.o -all: $(LIB) +all: $(LIBDIR) $(LIB) $(PROG) + +$(PROG): $(LIB) $(PROGO) + $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS) alll: @@ -22,6 +29,9 @@ $(LIB): $(PO) ar qc $(LIB) $(PO) ranlib $(LIB) +$(LIBDIR): + mkdir $(LIBDIR) + .c.o: $(CC) -c $(DEFS) $(CFLAGS) $<