-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile.in
59 lines (44 loc) · 1.26 KB
/
Makefile.in
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Makefile mnc
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
PREFIX = @prefix@
MANDIR = $(DESTDIR)/@mandir@
INSTALL = @INSTALL@
BINDIR = $(DESTDIR)/@bindir@
ETCDIR = $(DESTDIR)/@sysconfdir@
INSTALL_DIR = ${INSTALL} -m 0755 -d
INSTALL_PROG = ${INSTALL} -s -m 0755
INSTALL_DATA = ${INSTALL} -m 0644
CC = @CC@
@SET_MAKE@
DEBUG = #-g -D_DEBUG
INCLUDE = -I. -I/usr/local/include
CFLAGS = @CFLAGS@ ${DEBUG} ${INCLUDE}
BINARY = mnc
OBJECTS = mnc_main.o mnc_opts.o mnc_multicast.o mnc_error.o
all: ${BINARY} Makefile
${BINARY}: ${OBJECTS}
${CC} ${CFLAGS} -o ${BINARY} ${OBJECTS}
mnc_main.o: mnc_main.c mnc.h
${CC} ${CFLAGS} -c mnc_main.c
mnc_opts.o: mnc_opts.c mnc.h
${CC} ${CFLAGS} -c mnc_opts.c
mnc_multicast.o: mnc_multicast.c mnc.h
${CC} ${CFLAGS} -c mnc_multicast.c
mnc_error.o: mnc_error.c mnc.h
${CC} ${CFLAGS} -c mnc_error.c
install: mkcat
$(INSTALL_DIR) ${BINDIR}
$(INSTALL_PROG) ${BINARY} ${BINDIR}
mkcat:
$(INSTALL_DIR) ${MANDIR}/man1
$(INSTALL_DATA) doc/${BINARY}.1 ${MANDIR}/man1/
deinstall:
rm -f ${MANDIR}/man1/${BINARY}.1
rm -f ${BINDIR}/${BINARY}
clean:
rm -f *.o ${BINARY}
distclean: clean
rm -rf Makefile config.h config.log config.status config.cache tags \
autom4te.cache