X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=asn%2FMakefile;h=45b8768861e0ac46d929ce963e3cac426b027d78;hb=58eaa160fef1b2eae412e9be77833818a95dae92;hp=3b593137ad4378b42fed8699cf1203395f693a07;hpb=281bd093d547534ce4e667214a1881a84a9f3227;p=yaz-moved-to-github.git diff --git a/asn/Makefile b/asn/Makefile index 3b59313..45b8768 100644 --- a/asn/Makefile +++ b/asn/Makefile @@ -1,20 +1,20 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.5 1995-03-15 13:46:09 adam Exp $ +# $Id: Makefile,v 1.14 1995-06-02 09:49:11 quinn Exp $ SHELL=/bin/sh -INCLUDE=-I../include -I. -I../odr -LIBDIR=../../lib +INCLUDE=-I../include -I. +LIBDIR=../lib LIBINCLUDE=-L$(LIBDIR) #CFLAGS=-g -Wall -pedantic -ansi DEFS=$(INCLUDE) LIB=$(LIBDIR)/libasn.a LIBS=-lodr -lasn -PO = proto.o diagbib1.o -CPP=cc -E +PO = proto.o diagbib1.o zget.o prt-rsc.o prt-acc.o +CPP=$(CC) -E -all: $(LIBDIR) $(LIB) +all: $(LIB) test: test.o $(LIB) ../odr/odr.a $(CC) $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) ../odr/odr.a @@ -26,9 +26,6 @@ $(LIB): $(PO) ar qc $(LIB) $(PO) ranlib $(LIB) -$(LIBDIR): - mkdir $(LIBDIR) - .c.o: $(CC) -c $(DEFS) $(CFLAGS) $< @@ -38,10 +35,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