Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - gopherproxy-c - Gopher HTTP proxy in C (CGI)
git clone git://git.codemadness.org/gopherproxy-c
Log
Files
Refs
README
LICENSE
---
Makefile (1022B)
---
1 .POSIX:
2
3 NAME = gopherproxy
4 VERSION = 0.1
5
6 PREFIX = /usr/local
7 BINDIR = ${PREFIX}/bin
8 MANDIR = ${PREFIX}/man/man1
9
10 GOPHER_CFLAGS = ${CFLAGS}
11 GOPHER_LDFLAGS = ${LDFLAGS}
12 GOPHER_CPPFLAGS = -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_BSD_SOURCE
13
14 # build static: useful in www chroot.
15 GOPHER_LDFLAGS = ${LDFLAGS} -static
16
17 SRC = gopherproxy.c
18 OBJ = ${SRC:.c=.o}
19
20 all: ${NAME}
21
22 .c.o:
23 ${CC} ${GOPHER_CFLAGS} ${GOPHER_CPPFLAGS} -c $<
24
25 ${OBJ}:
26
27 ${NAME}: ${OBJ}
28 ${CC} -o $@ ${OBJ} ${GOPHER_LDFLAGS}
29
30 clean:
31 rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz
32
33 install: all
34 mkdir -p "${DESTDIR}${BINDIR}"
35 cp -f ${NAME} "${DESTDIR}${BINDIR}"
36 chmod 755 "${DESTDIR}${BINDIR}/${NAME}"
37 mkdir -p "${DESTDIR}${MANDIR}"
38
39 uninstall:
40 rm -f "${DESTDIR}${BINDIR}/${NAME}"
41
42 dist: clean
43 rm -rf "${NAME}-${VERSION}"
44 mkdir -p ${NAME}-${VERSION}
45 cp -R README LICENSE Makefile \
46 ${NAME}.c ${NAME}-${VERSION}
47 tar cf - ${NAME}-${VERSION} | \
48 gzip -c > "${NAME}-${VERSION}.tar.gz"
49 rm -rf "${NAME}-${VERSION}"
50
51 .PHONY: all clean dist install uninstall
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.