-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 790 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
# $NetBSD: Makefile,v 1.1 2022/04/06 13:35:50 reinoud Exp $
# .include <bsd.own.mk>
CFLAGS=`pkg-config --cflags libbsd-overlay`
LDFLAGS=`pkg-config --libs libbsd-overlay`
PROG= fsck_udf
MAN= fsck_udf.8
SRCS= main.c udf_core.c \
udf_osta.c fsutil.c
# fattr.c fsutil.c
FSCK= ${NETBSDSRCDIR}/sbin/fsck
NEWFS= ${NETBSDSRCDIR}/sbin/newfs_udf
MOUNT= ${NETBSDSRCDIR}/sbin/mount
KUDF= ${NETBSDSRCDIR}/sys/fs/udf
CPPFLAGS+= -I${FSCK} -I${KUDF} -I${NEWFS} -I${NETBSDSRCDIR}/sys
.PATH: ${FSCK} ${NEWFS} ${MOUNT} ${KUDF}
DPADD+=${LIBUTIL}
LDADD+=-lutil -lprop
CC=gcc
CWARNFLAGS.clang+= -Wno-error=address-of-packed-member
CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER}
prog:
${CC} -o $(PROG) $(SRCS) $(LDFLAGS) $(CFLAGS) -D_GNU_SOURCE -std=c11 -g -O0 -lm -I./udf
#.include <bsd.prog.mk>