X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=asn%2FMakefile;h=9e1237a2cbfe16b7641a6b1e3507982336741bac;hb=87a9bdcb0fda85461f9992519f4239645c8b2826;hp=65fdd77a710a5b196df01460caa94b1617878250;hpb=d21336d699898344c0af816edf1064474af32b44;p=yaz-moved-to-github.git diff --git a/asn/Makefile b/asn/Makefile index 65fdd77..9e1237a 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.8 1995-03-30 14:02:50 quinn Exp $ SHELL=/bin/sh -INCLUDE=-I../include -I. -I../odr -CFLAGS=-g -Wall -pedantic -ansi +INCLUDE=-I../include -I. +LIBDIR=../../lib +LIBINCLUDE=-L$(LIBDIR) +#CFLAGS=-g -Wall -pedantic -ansi DEFS=$(INCLUDE) -LIB=asn.a -PO = proto.o -CPP=cc -E +LIB=$(LIBDIR)/libasn.a +LIBS=-lodr -lasn +PO = proto.o diagbib1.o oid.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) $<