X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2FMakefile;h=abb24d8d5318a6ded978be263e2b9d3a29b4bf0c;hb=396d0ccd2549e6f31cf1f9adc1c19a97d3a7b0de;hp=1ba77f56242005b4b75c5d167d57c4d30e01f808;hpb=88ad85bd973c764146777e7cfe2e4a56c71994b9;p=yaz-moved-to-github.git diff --git a/odr/Makefile b/odr/Makefile index 1ba77f5..abb24d8 100644 --- a/odr/Makefile +++ b/odr/Makefile @@ -1,23 +1,26 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.3 1995-02-09 16:02:42 quinn Exp $ +# $Id: Makefile,v 1.9 1995-03-20 09:45:59 quinn Exp $ SHELL=/bin/sh INCLUDE=-I../include -I. -#CFLAGS= -g -Wall -pedantic -ansi -DODR_DEBUG +LIBDIR=../../lib +LIBINCLUDE=-L$(LIBDIR) +CFLAGS= -g -Wall -pedantic -ansi -DODR_DEBUG DEFS=$(INCLUDE) -LIB=odr.a +LIB=$(LIBDIR)/libodr.a +LIBS=-lodr PO = odr_bool.o ber_bool.o ber_len.o ber_tag.o odr_util.o odr_null.o \ ber_null.o odr_int.o ber_int.o odr_tag.o odr_cons.o odr_seq.o\ odr_oct.o ber_oct.o odr_bit.o ber_bit.o odr_oid.o ber_oid.o odr_use.o \ - odr_choice.o odr_any.o ber_any.o + odr_choice.o odr_any.o ber_any.o odr.o odr_mem.o CPP=cc -E -all: $(LIB) test +all: $(LIBDIR) $(LIB) test: test.o $(LIB) - $(CC) $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) + $(CC) $(CFLAGS) $(LIBINCLUDE) -o test test.o $(LIBS) alll: @@ -26,6 +29,9 @@ $(LIB): $(PO) ar qc $(LIB) $(PO) ranlib $(LIB) +$(LIBDIR): + mkdir $(LIBDIR) + .c.o: $(CC) -c $(DEFS) $(CFLAGS) $<