projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Facility for two types of depend. tail-type (1) of include-type (2).
[idzebra-moved-to-github.git]
/
isam
/
Makefile
diff --git
a/isam/Makefile
b/isam/Makefile
index
e63f4c1
..
3be9079
100644
(file)
--- a/
isam/Makefile
+++ b/
isam/Makefile
@@
-3,7
+3,7
@@
INCLUDE=-I../include
CFLAGS=-g -Wall -pedantic
DEFS=$(INCLUDE)
LIB=../lib/isam.a
CFLAGS=-g -Wall -pedantic
DEFS=$(INCLUDE)
LIB=../lib/isam.a
-PO = isutil.o isam.o
+PO = isam.o isutil.o rootblk.o memory.o
CPP=cc -E
all: $(LIB)
CPP=cc -E
all: $(LIB)
@@
-26,9
+26,19
@@
$(LIB): $(PO)
clean:
rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist isam-test
clean:
rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist isam-test
-dep depend:
+depend: depend2
+
+depend1:
mv Makefile Makefile.tmp
sed '/^#Depend/q' <Makefile.tmp >Makefile
$(CPP) $(INCLUDE) -M *.c >>Makefile
mv Makefile Makefile.tmp
sed '/^#Depend/q' <Makefile.tmp >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
#Depend --- DOT NOT DELETE THIS LINE