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
Added local-subject-index to any.
[yaz-moved-to-github.git]
/
util
/
Makefile
diff --git
a/util/Makefile
b/util/Makefile
index
05289b7
..
1439bf0
100644
(file)
--- a/
util/Makefile
+++ b/
util/Makefile
@@
-1,30
+1,35
@@
# 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-03-30 09:39:45 quinn Exp $
+# $Id: Makefile,v 1.20 1996-05-22 08:36:07 adam Exp $
SHELL=/bin/sh
INCLUDE=-I../include -I.
SHELL=/bin/sh
INCLUDE=-I../include -I.
-LIBDIR=../../lib
+LIBDIR=../lib
LIBINCLUDE=-L$(LIBDIR)
LIBINCLUDE=-L$(LIBDIR)
-#CFLAGS=-g -Wall -pedantic -ansi
DEFS=$(INCLUDE)
DEFS=$(INCLUDE)
+#DEFS=$(INCLUDE) -DTRACE_XMALLOC=1
LIB=$(LIBDIR)/libutil.a
LIBS=
LIB=$(LIBDIR)/libutil.a
LIBS=
-PO = dmalloc.o options.o
-CPP=cc -E
+PO = options.o log.o marcdisp.o yaz-ccl.o pquery.o oid.o wrbuf.o \
+ xmalloc.o readconf.o tpath.o nmem.o yaz-util.o # dmalloc.o
+CPP=$(CC) -E
+RANLIB=ranlib
-all: $(LIBDIR) $(LIB)
+all: $(LIBDIR) $(LIB) marcdump
#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
+marcdump: marcdump.o $(LIB)
+ $(CC) $(CFLAGS) $(INCLUDE) -o marcdump marcdump.o $(LIB)
+
alll:
$(LIB): $(PO)
rm -f $(LIB)
ar qc $(LIB) $(PO)
alll:
$(LIB): $(PO)
rm -f $(LIB)
ar qc $(LIB) $(PO)
- ranlib $(LIB)
+ $(RANLIB) $(LIB)
$(LIBDIR):
mkdir $(LIBDIR)
$(LIBDIR):
mkdir $(LIBDIR)
@@
-33,15
+38,14
@@
$(LIBDIR):
$(CC) -c $(DEFS) $(CFLAGS) $<
clean:
$(CC) -c $(DEFS) $(CFLAGS) $<
clean:
- rm -f *.[oa] test core mon.out gmon.out errlist
+ rm -f *.[oa] test marcdump core mon.out gmon.out errlist
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