X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=asn%2FMakefile;h=c6626647c8dace314836ec7c1c02da85c0099373;hb=d4a0d41731122cc17df31b8e1957be28188df898;hp=e50fa31b9c73c623a5ddf13f2988ccc839e3407f;hpb=88ad85bd973c764146777e7cfe2e4a56c71994b9;p=yaz-moved-to-github.git diff --git a/asn/Makefile b/asn/Makefile index e50fa31..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.2 1995-02-09 16:02:32 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) test +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) $<