4,13 → 4,14 |
OUTDIR= output |
PROG= $(OUTDIR)/$(PROJ) |
SRCDIR= src |
SRCS= $(SRCDIR)/rebootd.c |
HEADERS= $(SRCDIR)/rebootd.h $(SRCDIR)/config.h $(SRCDIR)/signals.h $(SRCDIR)/network.h |
SRCS= $(SRCDIR)/rebootd.c $(SRCDIR)/config.c $(SRCDIR)/signals.c $(SRCDIR)/network.c |
|
VER_MAJOR= 1 |
VER_MINOR= 0 |
VER_REVISION!= svnversion . |
|
$(PROG): $(SRCS) |
$(PROG): $(HEADERS) $(SRCS) |
cc -pedantic-errors -Wall -o $(PROG) \ |
-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \ |
$(SRCS) |
20,8 → 21,7 |
pedantic: |
lint -x -s -p -n -h -e -c -b -aa \ |
-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \ |
$(SRCS) \ |
| grep -E '^$(PROJ)' |
$(SRCS) |
cc -Wnested-externs -Wredundant-decls -Wmissing-declarations \ |
-Wmissing-prototypes -Wstrict-prototypes -Waggregate-return \ |
-Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith \ |