Subversion Repositories general

Rev

Rev 1177 | Blame | Compare with Previous | Last modification | View Log | RSS feed

# rebootd - makefile for release

PROJ=           rebootd
PROG=           $(PROJ)

HEADERS=        rebootd.h config.h signals.h network.h
SRCS=           rebootd.c config.c signals.c network.c

VER_MAJOR=      %VER_MAJOR%
VER_MINOR=      %VER_MINOR%
VER_REVISION=   %VER_REVISION%

$(PROG): $(HEADERS) $(SRCS)
        cc -o $(PROG) \
                -DVER_MAJOR=\"$(VER_MAJOR)\" -DVER_MINOR=\"$(VER_MINOR)\" -DVER_REVISION=\"$(VER_REVISION)\" \
                $(SRCS)

all:    clean $(PROG)

clean:
        rm -f $(PROG)