Subversion Repositories general

Rev

Rev 1177 | Rev 1181 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1159 dev 1
# rebootd
1141 dev 2
 
1173 dev 3
PROJ=		rebootd
4
OUTDIR=		output
5
PROG=		$(OUTDIR)/$(PROJ)
1177 dev 6
SRCDIR=		src
7
SRCS=		$(SRCDIR)/rebootd.c
1159 dev 8
 
1173 dev 9
VER_MAJOR=	1
10
VER_MINOR=	0
1177 dev 11
VER_REVISION!=	svnversion .
1173 dev 12
 
1159 dev 13
$(PROG): $(SRCS)
1173 dev 14
	cc -pedantic-errors -Wall -o $(PROG) \
15
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
16
		$(SRCS)
1144 dev 17
 
1159 dev 18
all:	clean $(PROG)
1156 dev 19
 
20
pedantic:
1173 dev 21
	lint -x -s -p -n -h -e -c -b -aa \
22
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
23
		$(SRCS) \
24
		| grep -E '^$(PROJ)'
1156 dev 25
	cc -Wnested-externs -Wredundant-decls -Wmissing-declarations \
26
		-Wmissing-prototypes -Wstrict-prototypes -Waggregate-return \
27
		-Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith \
1173 dev 28
		-Wshadow -pedantic-errors -Wall \
29
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
30
		-o /dev/null $(SRCS)
1156 dev 31
 
1177 dev 32
release:
33
	./bin/make_release.sh $(VER_MAJOR) $(VER_MINOR)
1179 dev 34
	./bin/make_freebsd_port.sh
1177 dev 35
 
36
freebsd-port:
1179 dev 37
	./bin/make_freebsd_port.sh
1173 dev 38
 
1144 dev 39
clean:
1177 dev 40
	rm -rf $(OUTDIR)/*
1144 dev 41