-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (47 loc) · 1.08 KB
/
Makefile
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
PROG = ndmpd
SRCS = src/ndmpd.c \
src/ndmp_xdr.c \
$(NDMPD_SRCS) \
$(HANDLER_SRCS) \
$(TLM_SRCS)
NDMPD_SRCS = src/ndmpd_func.c \
src/ndmpd_base64.c \
src/ndmpd_table.c \
src/ndmpd_util.c \
src/ndmpd_prop.c \
src/ndmpd_tar_v3.c \
src/ndmpd_callbacks.c \
src/ndmpd_fhistory.c \
src/ndmpd_dtime.c \
src/ndmpd_snapshot.c
HANDLER_SRCS = src/ndmpd_connect.c \
src/ndmpd_info.c \
src/ndmpd_data.c \
src/ndmpd_mover.c
TLM_SRCS = tlm/tlm_util.c \
tlm/tlm_buffers.c \
tlm/tlm_lib.c \
tlm/tlm_backup_reader.c \
tlm/tlm_restore_writer.c \
tlm/tlm_info.c \
tlm/tlm_hardlink.c
LDADD = -lmd -lpthread -lc
MAN=
CFLAGS += -I. -I./include
CFLAGS += -DEMC_MODEL
PREFIX ?= /usr/local
DSTDIR = ${PREFIX}/sbin
ETCDIR = ${PREFIX}/etc
.c.o:
$(CC) ${STATIC_CFLAGS} $(CFLAGS) -c $< -o $@
install: ${PROG}
@mkdir -p ${DSTDIR}
@cp $(PROG) ${DSTDIR}/
@cp ndmpd.conf ${ETCDIR}/ndmpd.conf.example
plist:
@echo "@comment files"
@echo "@cwd ${DSTDIR}"
@echo ${PROG}
@echo "@cwd /etc"
@echo ndmpd.conf
.include <bsd.prog.mk>