X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=asn%2FMakefile;h=3b593137ad4378b42fed8699cf1203395f693a07;hb=813f1a77544956dd0e0f8b9cbdf491a6b01927cb;hp=e50fa31b9c73c623a5ddf13f2988ccc839e3407f;hpb=88ad85bd973c764146777e7cfe2e4a56c71994b9;p=yaz-moved-to-github.git diff --git a/asn/Makefile b/asn/Makefile index e50fa31..3b59313 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.5 1995-03-15 13:46:09 adam 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 -PO = proto.o +LIB=$(LIBDIR)/libasn.a +LIBS=-lodr -lasn +PO = proto.o diagbib1.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) $<