aboutsummaryrefslogtreecommitdiff
path: root/rcynic/Makefile.in
blob: 55d0230c031a9efb36e7fa6cf4f85f16865870c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id$

NAME = rcynic

BIN = ${NAME}
SRC = ${NAME}.c
OBJ = ${NAME}.o

CFLAGS = @CFLAGS@ -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations
LDFLAGS = @LDFLAGS@ @LD_STATIC_FLAG@
LIBS = @LIBS@

abs_top_srcdir	 = @abs_top_srcdir@
abs_top_builddir = @abs_top_builddir@

host_os = @host_os@

all: ${BIN}

clean:
	rm -f ${BIN} ${OBJ}

${BIN}: ${SRC}
	${CC} ${CFLAGS} -o $@ ${SRC} ${LDFLAGS} ${LIBS}

test: ${BIN}
	if test -r rcynic.conf; then ./${BIN} -j 0 && echo && ./show.sh; else echo No rcynic.conf, skipping test; fi

install: ${BIN} installation-scripts/install.sh
	cd installation-scripts; . ./install.sh ${host_os}

uninstall deinstall:
	cd installation-scripts; . ./deinstall.sh ${host_os}

doc::
	doxygen

doc::
	cd doc/latex && make pdf && ln -f refman.pdf ..

distclean: clean
	cd static-rsync; ${MAKE} clean
	rm -f show.sh Makefile