File: Makefile

package info (click to toggle)
micro-httpd 20051212-15.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 176 kB
  • ctags: 122
  • sloc: ansic: 695; sh: 165; makefile: 100
file content (25 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (3)
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 =	${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