From: Sebastian Hammer Date: Tue, 14 Mar 1995 10:27:12 +0000 (+0000) Subject: Modified makefile to use common lib X-Git-Tag: YAZ.1.8~1142 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=b44b4c3587d6a479d12f91c1ce38eaf533fb4980 Modified makefile to use common lib --- diff --git a/asn/Makefile b/asn/Makefile index 3ea01f9..c662664 100644 --- a/asn/Makefile +++ b/asn/Makefile @@ -1,17 +1,20 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.3 1995-03-07 16:29:33 quinn Exp $ +# $Id: Makefile,v 1.4 1995-03-14 10:27:12 quinn Exp $ SHELL=/bin/sh INCLUDE=-I../include -I. -I../odr +LIBDIR=../../lib +LIBINCLUDE=-L$(LIBDIR) #CFLAGS=-g -Wall -pedantic -ansi DEFS=$(INCLUDE) -LIB=asn.a +LIB=$(LIBDIR)/libasn.a +LIBS=-lodr -lasn PO = proto.o CPP=cc -E -all: $(LIB) +all: $(LIBDIR) $(LIB) test: test.o $(LIB) ../odr/odr.a $(CC) $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) ../odr/odr.a @@ -23,6 +26,9 @@ $(LIB): $(PO) ar qc $(LIB) $(PO) ranlib $(LIB) +$(LIBDIR): + mkdir $(LIBDIR) + .c.o: $(CC) -c $(DEFS) $(CFLAGS) $<