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
Minor changes.
[idzebra-moved-to-github.git]
/
bfile
/
Makefile
diff --git
a/bfile/Makefile
b/bfile/Makefile
index
b4cee70
..
3fa5f2f
100644
(file)
--- a/
bfile/Makefile
+++ b/
bfile/Makefile
@@
-1,11
+1,10
@@
-
SHELL=/bin/sh
INCLUDE=-I../include
TPROG=btest
SHELL=/bin/sh
INCLUDE=-I../include
TPROG=btest
-CFLAGS=-g -Wall
+CFLAGS=-g -Wall -pedantic
DEFS=$(INCLUDE)
LIB=../lib/bfile.a
DEFS=$(INCLUDE)
LIB=../lib/bfile.a
-PO = open.o close.o rdwr.o
+PO = bfile.o mfile.o
CPP=cc -E
all: $(LIB)
CPP=cc -E
all: $(LIB)
@@
-22,11
+21,11
@@
$(LIB): $(PO)
$(CC) -c $(DEFS) $(CFLAGS) $<
clean:
$(CC) -c $(DEFS) $(CFLAGS) $<
clean:
- rm -f *.[oa] $(TPROG) core mon.out gmon.out
+ rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist
dep depend:
dep depend:
- $(CPP) $(INCLUDE) -M *.c >.depend
+ mv Makefile Makefile.tmp
+ sed '/^#Depend/q' <Makefile.tmp >Makefile
+ $(CPP) $(INCLUDE) -M *.c >>Makefile
-#ifeq (.depend,$(wildcard .depend))
-include .depend
-#endif
+#Depend --- DOT NOT DELETE THIS LINE