X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=asn%2FMakefile;h=3b593137ad4378b42fed8699cf1203395f693a07;hb=813f1a77544956dd0e0f8b9cbdf491a6b01927cb;hp=65fdd77a710a5b196df01460caa94b1617878250;hpb=d21336d699898344c0af816edf1064474af32b44;p=yaz-moved-to-github.git diff --git a/asn/Makefile b/asn/Makefile index 65fdd77..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.1 1995-02-09 15:52:34 quinn Exp $ +# $Id: Makefile,v 1.5 1995-03-15 13:46:09 adam Exp $ SHELL=/bin/sh INCLUDE=-I../include -I. -I../odr -CFLAGS=-g -Wall -pedantic -ansi +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) $<