aboutsummaryrefslogtreecommitdiff
path: root/rcynic/Makefile
blob: 1f5487c3e69caa0ac893a7e9ee8a8618d71f0e1c (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
# $Id$

OPENSSL_DIR = ../openssl/openssl

# Disable -Werror as long as we're using OpenSSL snapshots.

CFLAGS = -g -I${OPENSSL_DIR}/include -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations
LDFLAGS = -static

# -H -Wl,-t

BIN = rcynic
OBJ = rcynic.o
LIB = ${OPENSSL_DIR}/libcrypto.a

all: ${BIN}

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

${BIN}: ${OBJ} ${LIB} Makefile
	${CC} -g -o $@ ${OBJ} ${LIB} ${LDFLAGS}

test: ${BIN}
	./${BIN} -j 0
	-xsltproc --param refresh 0 rcynic.xsl rcynic.xml | w3m -T text/html -dump

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

doc::
	doxygen

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