-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (34 loc) · 988 Bytes
/
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
# $NetBSD: Makefile,v 1.36 2013/08/05 14:41:57 reinoud Exp $
#
CFLAGS=`pkg-config --cflags libbsd-overlay`
LDFLAGS=`pkg-config --libs libbsd-overlay`
WARNS?= 5
# .include <bsd.own.mk>
PROG= makefs
SRCS= udf.c strstuff.c \
makefs.c \
walk.c
MAN= makefs.8
#CC= clang
DESTDIR ?= /usr/local
MKNODSRC= ${NETBSDSRCDIR}/sbin/mknod
MTREESRC= ${NETBSDSRCDIR}/usr.sbin/mtree
CPPFLAGS+= -I${.CURDIR} -I${MKNODSRC} -I${MTREESRC} -DMAKEFS
#CPPFLAGS+= -DMSDOSFS_DEBUG
#PATH: ${MKNODSRC} ${MTREESRC}
#.include "${.CURDIR}/cd9660/Makefile.inc"
#.include "${.CURDIR}/chfs/Makefile.inc"
#.include "${.CURDIR}/ffs/Makefile.inc"
#.include "${.CURDIR}/v7fs/Makefile.inc"
#.include "${.CURDIR}/msdos/Makefile.inc"
SRCS+= udf_core.c udf_osta.c
#if !defined(HOSTPROG)
DPADD+= ${LIBUTIL} ${LIBM}
LDADD+= -lutil -lm
#endif
prog:
${CC} -o $(PROG) $(SRCS) $(LDFLAGS) -D_GNU_SOURCE -std=c11 -lm -I./udf -static
install:
install -D $(PROG) $(DESTDIR)/bin/$(PROG)
#.include <bsd.prog.mk>
# DO NOT DELETE