From: Sebastian Hammer Date: Tue, 7 Feb 1995 17:53:43 +0000 (+0000) Subject: Initial revision X-Git-Tag: YAZ.1.8~1164 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=aad9a6e6dbceb78f4a125c24c9b93d19f75af361 Initial revision --- diff --git a/odr/Makefile b/odr/Makefile new file mode 100644 index 0000000..8b5a4a8 --- /dev/null +++ b/odr/Makefile @@ -0,0 +1,50 @@ +# 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 $ + +SHELL=/bin/sh +INCLUDE=-I../include -I. +CFLAGS=-g -Wall -pedantic +DEFS=$(INCLUDE) +LIB=odr.a +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 + +all: $(LIB) test + +test: test.o $(LIB) + cc $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) + +alll: + +$(LIB): $(PO) + rm -f $(LIB) + ar qc $(LIB) $(PO) + ranlib $(LIB) + +.c.o: + $(CC) -c $(DEFS) $(CFLAGS) $< + +clean: + rm -f *.[oa] test core mon.out gmon.out errlist + +depend: depend2 + +depend1: + mv Makefile Makefile.tmp + sed '/^#Depend/q' Makefile + $(CPP) $(INCLUDE) -M *.c >>Makefile + -rm Makefile.tmp + +depend2: + $(CPP) $(INCLUDE) -M *.c >.depend + +ifeq (.depend,$(wildcard .depend)) +include .depend +endif + +#Depend --- DOT NOT DELETE THIS LINE