Rev 1144 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1144 | Rev 1156 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | PROG= rebootdaemon |
|
1 | SRCS=rebootdaemon.c |
2 | SRCS= rebootdaemon.c |
2 | BIN=rebootdaemon |
- | |
3 | RES=$(BIN) |
- | |
4 | 3 | ||
5 | rebootdaemon: $(SRCS) |
4 | rebootdaemon: $(SRCS) |
6 | cc -Wall -o $(BIN) $(SRCS) |
5 | cc -pedantic-errors -Wall -o $(PROG) $(SRCS) |
7 | 6 | ||
- | 7 | all: clean rebootdaemon |
|
- | 8 | ||
- | 9 | pedantic: |
|
- | 10 | lint -x -s -p -n -h -e -c -b -aa $(SRCS) | grep -E '^rebootdaemon.c' |
|
- | 11 | cc -Wnested-externs -Wredundant-decls -Wmissing-declarations \ |
|
- | 12 | -Wmissing-prototypes -Wstrict-prototypes -Waggregate-return \ |
|
- | 13 | -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith \ |
|
- | 14 | -Wshadow -pedantic-errors -Wall -o $(PROG) $(SRCS) |
|
- | 15 | ||
8 | clean: |
16 | clean: |
9 | rm -f $(RES) |
17 | rm -f $(PROG) |
10 | 18 |