X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=odr%2FMakefile;h=1af7ed43ac1f5bca13f94d6018f0a681818e14af;hp=86ad6eacc5535077fd3f61daca081acd846cddeb;hb=ddd998ca83ffe16e7548f0717d218d32a2b57a33;hpb=f90ac049be17bf84f79ee8e541edab72f2b259e6 diff --git a/odr/Makefile b/odr/Makefile index 86ad6ea..1af7ed4 100644 --- a/odr/Makefile +++ b/odr/Makefile @@ -1,13 +1,13 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.11 1995-03-28 09:15:45 quinn Exp $ +# $Id: Makefile,v 1.20 1995-05-30 10:25:46 quinn Exp $ SHELL=/bin/sh -INCLUDE=-I../include -I. -I../util -LIBDIR=../../lib +INCLUDE=-I../include -I. +LIBDIR=../lib LIBINCLUDE=-L$(LIBDIR) -CFLAGS= -g -Wall -pedantic -ansi #-DODR_DEBUG +CFLAGS= -g -Wall -pedantic -ansi -DODR_DEBUG DEFS=$(INCLUDE) LIB=$(LIBDIR)/libodr.a LIBS=-lodr @@ -15,9 +15,9 @@ 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.o odr_mem.o -CPP=cc -E +CPP=$(CC) -E -all: $(LIBDIR) $(LIB) +all: $(LIBDIR) $(INCDIR) $(LIB) test: test.o $(LIB) $(CC) $(CFLAGS) $(LIBINCLUDE) -o test test.o $(LIBS) @@ -41,10 +41,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