Subversion Repositories general

Rev

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
1187 dev 7
HEADERS=	$(SRCDIR)/rebootd.h $(SRCDIR)/config.h $(SRCDIR)/signals.h $(SRCDIR)/network.h
8
SRCS=		$(SRCDIR)/rebootd.c $(SRCDIR)/config.c $(SRCDIR)/signals.c $(SRCDIR)/network.c
1159 dev 9
 
1173 dev 10
VER_MAJOR=	1
11
VER_MINOR=	0
1177 dev 12
VER_REVISION!=	svnversion .
1173 dev 13
 
1187 dev 14
$(PROG): $(HEADERS) $(SRCS)
1173 dev 15
	cc -pedantic-errors -Wall -o $(PROG) \
16
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
17
		$(SRCS)
1144 dev 18
 
1159 dev 19
all:	clean $(PROG)
1156 dev 20
 
21
pedantic:
1173 dev 22
	lint -x -s -p -n -h -e -c -b -aa \
23
		-DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
1187 dev 24
		$(SRCS)
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)
1181 dev 34
	./bin/make_freebsd_port.sh $(VER_MAJOR) $(VER_MINOR)
1177 dev 35
 
36
freebsd-port:
1181 dev 37
	./bin/make_freebsd_port.sh $(VER_MAJOR) $(VER_MINOR)
1173 dev 38
 
1144 dev 39
clean:
1177 dev 40
	rm -rf $(OUTDIR)/*
1144 dev 41