projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Smallish.
[yaz-moved-to-github.git]
/
asn
/
Makefile
diff --git
a/asn/Makefile
b/asn/Makefile
index
e50fa31
..
ddbd223
100644
(file)
--- a/
asn/Makefile
+++ b/
asn/Makefile
@@
-1,17
+1,22
@@
# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.2 1995-02-09 16:02:32 quinn Exp $
+# $Id: Makefile,v 1.20 1995-08-29 11:17:14 quinn Exp $
SHELL=/bin/sh
SHELL=/bin/sh
-INCLUDE=-I../include -I. -I../odr
+INCLUDE=-I../include -I.
+LIBDIR=../lib
+LIBINCLUDE=-L$(LIBDIR)
#CFLAGS=-g -Wall -pedantic -ansi
DEFS=$(INCLUDE)
#CFLAGS=-g -Wall -pedantic -ansi
DEFS=$(INCLUDE)
-LIB=asn.a
-PO = proto.o
-CPP=cc -E
+LIB=$(LIBDIR)/libasn.a
+LIBS=-lodr -lasn
+PO = proto.o diagbib1.o zget.o prt-rsc.o prt-acc.o prt-exp.o prt-ext.o \
+ prt-grs.o prt-exd.o prt-dia.o
+CPP=$(CC) -E
+RANLIB=ranlib
-all: $(LIB) test
+all: $(LIB)
test: test.o $(LIB) ../odr/odr.a
$(CC) $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) ../odr/odr.a
test: test.o $(LIB) ../odr/odr.a
$(CC) $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) ../odr/odr.a
@@
-21,7
+26,7
@@
alll:
$(LIB): $(PO)
rm -f $(LIB)
ar qc $(LIB) $(PO)
$(LIB): $(PO)
rm -f $(LIB)
ar qc $(LIB) $(PO)
- ranlib $(LIB)
+ $(RANLIB) $(LIB)
.c.o:
$(CC) -c $(DEFS) $(CFLAGS) $<
.c.o:
$(CC) -c $(DEFS) $(CFLAGS) $<
@@
-32,10
+37,9
@@
clean:
depend: depend2
depend1:
depend: depend2
depend1:
- mv Makefile Makefile.tmp
- sed '/^#Depend/q' <Makefile.tmp >Makefile
- $(CPP) $(INCLUDE) -M *.c >>Makefile
- -rm Makefile.tmp
+ sed '/^#Depend/q' <Makefile >Makefile.tmp
+ $(CPP) $(DEFS) -M *.c >>Makefile.tmp
+ mv -f Makefile.tmp Makefile
depend2:
$(CPP) $(INCLUDE) -M *.c >.depend
depend2:
$(CPP) $(INCLUDE) -M *.c >.depend