Subversion Repositories general

Rev

Rev 1181 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1181 Rev 1187
Line 2... Line 2...
2
 
2
 
3
PROJ=		rebootd
3
PROJ=		rebootd
4
OUTDIR=		output
4
OUTDIR=		output
5
PROG=		$(OUTDIR)/$(PROJ)
5
PROG=		$(OUTDIR)/$(PROJ)
6
SRCDIR=		src
6
SRCDIR=		src
-
 
7
HEADERS=	$(SRCDIR)/rebootd.h $(SRCDIR)/config.h $(SRCDIR)/signals.h $(SRCDIR)/network.h
7
SRCS=		$(SRCDIR)/rebootd.c
8
SRCS=		$(SRCDIR)/rebootd.c $(SRCDIR)/config.c $(SRCDIR)/signals.c $(SRCDIR)/network.c
8
 
9
 
9
VER_MAJOR=	1
10
VER_MAJOR=	1
10
VER_MINOR=	0
11
VER_MINOR=	0
11
VER_REVISION!=	svnversion .
12
VER_REVISION!=	svnversion .
12
 
13
 
13
$(PROG): $(SRCS)
14
$(PROG): $(HEADERS) $(SRCS)
14
	cc -pedantic-errors -Wall -o $(PROG) \
15
	cc -pedantic-errors -Wall -o $(PROG) \
15
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
16
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
16
		$(SRCS)
17
		$(SRCS)
17
 
18
 
18
all:	clean $(PROG)
19
all:	clean $(PROG)
19
 
20
 
20
pedantic:
21
pedantic:
21
	lint -x -s -p -n -h -e -c -b -aa \
22
	lint -x -s -p -n -h -e -c -b -aa \
22
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
23
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
23
		$(SRCS) \
24
		$(SRCS)
24
		| grep -E '^$(PROJ)'
-
 
25
	cc -Wnested-externs -Wredundant-decls -Wmissing-declarations \
25
	cc -Wnested-externs -Wredundant-decls -Wmissing-declarations \
26
		-Wmissing-prototypes -Wstrict-prototypes -Waggregate-return \
26
		-Wmissing-prototypes -Wstrict-prototypes -Waggregate-return \
27
		-Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith \
27
		-Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith \
28
		-Wshadow -pedantic-errors -Wall \
28
		-Wshadow -pedantic-errors -Wall \
29
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
29
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \