projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fseek() test driver.
[fw/pdclib]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 9894792dc3b028a35a74b0e50cc4c738254a9e67..1d902001d6e615989146b2447d2bb4db523b7fc0 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-17,11
+17,15
@@
INTFILES := _Exit atomax digits open print scan remove rename seed stdinit strto
# All object files in the library
OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
# All test drivers (.t)
# All object files in the library
OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
# All test drivers (.t)
-TSTFILES := $(patsubst %.c,%
.
t,$(SRCFILES))
+TSTFILES := $(patsubst %.c,%
_
t,$(SRCFILES))
# All regression test drivers (.r)
# All regression test drivers (.r)
-REGFILES := $(filter-out $(patsubst %,functions/_PDCLIB/%
.r,$(INTFILES)),$(patsubst %.c,%.
r,$(SRCFILES)))
-# All dependency files (.d)
+REGFILES := $(filter-out $(patsubst %,functions/_PDCLIB/%
_r,$(INTFILES)),$(patsubst %.c,%_
r,$(SRCFILES)))
+# All
library
dependency files (.d)
DEPFILES := $(patsubst %.c,%.d,$(SRCFILES))
DEPFILES := $(patsubst %.c,%.d,$(SRCFILES))
+# All test driver dependency files (_t.d)
+TSTDEPFILES := $(patsubst %,%.d,$(TSTFILES))
+# All regression test driver dependency files (_r.d)
+REGDEPFILES := $(patsubst %,%.d,$(REGFILES))
# All files belonging to the source distribution
ALLFILES := $(SRCFILES) $(HDRFILES) $(AUXFILES)
# All files belonging to the source distribution
ALLFILES := $(SRCFILES) $(HDRFILES) $(AUXFILES)
@@
-33,7
+37,7
@@
PATCHFILES2 := $(shell ls platform/$(PLATFORM)/functions/stdlib/*.c)
PATCHFILES3 := $(shell ls platform/$(PLATFORM)/functions/stdio/*.c)
WARNINGS := -Wall -Wextra -pedantic -Wno-unused-parameter -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -fno-builtin
PATCHFILES3 := $(shell ls platform/$(PLATFORM)/functions/stdio/*.c)
WARNINGS := -Wall -Wextra -pedantic -Wno-unused-parameter -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -fno-builtin
-CFLAGS := -g -std=c99 -I./internals $(WARNINGS) $(USERFLAGS)
+CFLAGS := -g -std=c99 -I./internals
-I./testing
$(WARNINGS) $(USERFLAGS)
.PHONY: all clean srcdist bindist test tests testdrivers regtests regtestdrivers todos fixmes find links unlink help
.PHONY: all clean srcdist bindist test tests testdrivers regtests regtestdrivers todos fixmes find links unlink help
@@
-71,10
+75,10
@@
regtests: regtestdrivers
regtestdrivers: $(REGFILES)
@echo
regtestdrivers: $(REGFILES)
@echo
-
-include $(
DEPFILES)
+
#-include $(DEPFILES) $(TSTDEPFILES) $(REG
DEPFILES)
clean:
clean:
- @for file in $(OBJFILES) $(DEPFILES) $(TSTFILES) $(
REGFILES) pdclib.a pdclib.tgz
; do if [ -f $$file ]; then rm $$file; fi; done
+ @for file in $(OBJFILES) $(DEPFILES) $(TSTFILES) $(
TSTDEPFILES) $(REGFILES) $(REGDEPFILES) pdclib.a pdclib.tgz scanf_testdata_*
; do if [ -f $$file ]; then rm $$file; fi; done
srcdist:
@tar czf pdclib.tgz $(ALLFILES)
srcdist:
@tar czf pdclib.tgz $(ALLFILES)
@@
-130,13
+134,13
@@
help:
%.o: %.c Makefile
@echo " CC $(patsubst functions/%,%,$@)"
%.o: %.c Makefile
@echo " CC $(patsubst functions/%,%,$@)"
- @$(CC) $(CFLAGS) -MMD -MP -
MT "$*.d $*.t $*.o" -
I./includes -c $< -o $@
+ @$(CC) $(CFLAGS) -MMD -MP -I./includes -c $< -o $@
-%
.
t: %.c Makefile pdclib.a
+%
_
t: %.c Makefile pdclib.a
@echo " CC $(patsubst functions/%,%,$@)"
@echo " CC $(patsubst functions/%,%,$@)"
- @$(CC) $(CFLAGS) -DTEST -I./includes $< pdclib.a -o $@
+ @$(CC) $(CFLAGS) -
MMD -MP -
DTEST -I./includes $< pdclib.a -o $@
-%
.
r: %.c Makefile
+%
_
r: %.c Makefile
@echo " CC $(patsubst functions/%,%,$@)"
@echo " CC $(patsubst functions/%,%,$@)"
- @$(CC) $(CFLAGS) -
Wno-format
-DTEST -DREGTEST $< -o $@
+ @$(CC) $(CFLAGS) -
MMD -MP
-DTEST -DREGTEST $< -o $@