Subversion Repositories general

Rev

Rev 1179 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1179 Rev 1181
1
# rebootd
1
# rebootd
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
SRCS=		$(SRCDIR)/rebootd.c
7
SRCS=		$(SRCDIR)/rebootd.c
8
 
8
 
9
VER_MAJOR=	1
9
VER_MAJOR=	1
10
VER_MINOR=	0
10
VER_MINOR=	0
11
VER_REVISION!=	svnversion .
11
VER_REVISION!=	svnversion .
12
 
12
 
13
$(PROG): $(SRCS)
13
$(PROG): $(SRCS)
14
	cc -pedantic-errors -Wall -o $(PROG) \
14
	cc -pedantic-errors -Wall -o $(PROG) \
15
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
15
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
16
		$(SRCS)
16
		$(SRCS)
17
 
17
 
18
all:	clean $(PROG)
18
all:	clean $(PROG)
19
 
19
 
20
pedantic:
20
pedantic:
21
	lint -x -s -p -n -h -e -c -b -aa \
21
	lint -x -s -p -n -h -e -c -b -aa \
22
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
22
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
23
		$(SRCS) \
23
		$(SRCS) \
24
		| grep -E '^$(PROJ)'
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)\" \
30
		-o /dev/null $(SRCS)
30
		-o /dev/null $(SRCS)
31
 
31
 
32
release:
32
release:
33
	./bin/make_release.sh $(VER_MAJOR) $(VER_MINOR)
33
	./bin/make_release.sh $(VER_MAJOR) $(VER_MINOR)
34
	./bin/make_freebsd_port.sh
34
	./bin/make_freebsd_port.sh $(VER_MAJOR) $(VER_MINOR)
35
 
35
 
36
freebsd-port:
36
freebsd-port:
37
	./bin/make_freebsd_port.sh
37
	./bin/make_freebsd_port.sh $(VER_MAJOR) $(VER_MINOR)
38
 
38
 
39
clean:
39
clean:
40
	rm -rf $(OUTDIR)/*
40
	rm -rf $(OUTDIR)/*
41
 
41