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
String arg in dict lookup is const.
[idzebra-moved-to-github.git]
/
bfile
/
Makefile
diff --git
a/bfile/Makefile
b/bfile/Makefile
index
db24741
..
52fff4d
100644
(file)
--- a/
bfile/Makefile
+++ b/
bfile/Makefile
@@
-1,7
+1,7
@@
SHELL=/bin/sh
INCLUDE=-I../include
TPROG=btest
SHELL=/bin/sh
INCLUDE=-I../include
TPROG=btest
-CFLAGS=-g -Wall -pedantic
+CFLAGS=-g -Wall -pedantic -ansi
DEFS=$(INCLUDE)
LIB=../lib/bfile.a
PO = bfile.o mfile.o
DEFS=$(INCLUDE)
LIB=../lib/bfile.a
PO = bfile.o mfile.o
@@
-23,9
+23,19
@@
$(LIB): $(PO)
clean:
rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist
clean:
rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist
-dep depend:
- $(CPP) $(INCLUDE) -M *.c >.depend
+depend: depend2
-#ifeq (.depend,$(wildcard .depend))
+depend1:
+ 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
include .depend
-#endif
+endif
+
+#Depend --- DOT NOT DELETE THIS LINE