X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=odr%2FMakefile;h=b9f5bca9d025497315a94f1f4f9243303a8b1d86;hp=8b5a4a85fa1b5c356d084a08e07ae5d37b52404c;hb=502061d0cd291d3858c9b70eccd09dc35f400080;hpb=aad9a6e6dbceb78f4a125c24c9b93d19f75af361 diff --git a/odr/Makefile b/odr/Makefile index 8b5a4a8..b9f5bca 100644 --- a/odr/Makefile +++ b/odr/Makefile @@ -1,30 +1,37 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.1 1995-02-07 17:53:43 quinn Exp $ +# $Id: Makefile,v 1.22 1995-06-25 10:53:55 quinn Exp $ SHELL=/bin/sh INCLUDE=-I../include -I. -CFLAGS=-g -Wall -pedantic +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 -CPP=cc -E + odr_choice.o odr_any.o ber_any.o odr.o odr_mem.o dumpber.o +CPP=$(CC) -E +RANLIB=ranlib -all: $(LIB) test +all: $(LIBDIR) $(INCDIR) $(LIB) test: test.o $(LIB) - cc $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) + $(CC) $(CFLAGS) $(LIBINCLUDE) -o test test.o $(LIBS) alll: $(LIB): $(PO) rm -f $(LIB) ar qc $(LIB) $(PO) - ranlib $(LIB) + $(RANLIB) $(LIB) + +$(LIBDIR): + mkdir $(LIBDIR) .c.o: $(CC) -c $(DEFS) $(CFLAGS) $< @@ -35,10 +42,9 @@ clean: depend: depend2 depend1: - mv Makefile Makefile.tmp - sed '/^#Depend/q' Makefile - $(CPP) $(INCLUDE) -M *.c >>Makefile - -rm Makefile.tmp + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile depend2: $(CPP) $(INCLUDE) -M *.c >.depend