File: Makefile

package info (click to toggle)
micro-httpd 20051212-9
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 96 kB
  • ctags: 23
  • sloc: sh: 299; ansic: 231; makefile: 67
file content (25 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (5)
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
BINDIR =	/usr/local/sbin
MANDIR =	/usr/local/man/man8
CC =		gcc
CFLAGS =	-O
#CFLAGS =	-g
#SYSVLIBS =	-lnsl -lsocket
LDFLAGS =	-s ${SYSVLIBS}
#LDFLAGS =	-g ${SYSVLIBS}

all:		micro_httpd

micro_httpd:	micro_httpd.o
	${CC} ${CFLAGS} micro_httpd.o ${LDFLAGS} -o micro_httpd

micro_httpd.o:	micro_httpd.c
	${CC} ${CFLAGS} -c micro_httpd.c

install:	all
	rm -f ${BINDIR}/micro_httpd
	cp micro_httpd ${BINDIR}/micro_httpd
	rm -f ${MANDIR}/micro_httpd.8
	cp micro_httpd.8 ${MANDIR}/micro_httpd.8

clean:
	rm -f micro_httpd *.o core core.* *.core