-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
47 lines (35 loc) · 1.28 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
# $OpenBSD: Makefile,v 1.18 2018/01/15 19:45:51 brynet Exp $
PROG= file
SRCS= file.c magic-dump.c magic-load.c magic-test.c magic-common.c \
text.c xmalloc.c
MAN= file.1 magic.5
LDADD= -lutil
DPADD= ${LIBUTIL}
CDIAGFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
CDIAGFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
CDIAGFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
CDIAGFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align
MAGIC= /etc/magic
MAGICOWN= root
MAGICGRP= bin
MAGICMODE= 444
#CLEANFILES+= magic post-magic
MAG1= $(.CURDIR)/magdir/Header \
$(.CURDIR)/magdir/Localstuff \
$(.CURDIR)/magdir/OpenBSD
MAGFILES= $(.CURDIR)/magdir/[0-9a-z]*
#post-magic: $(MAGFILES)
# for i in ${.ALLSRC:N*.orig}; do \
# echo $$i; \
# done|sort|xargs -n 1024 cat >$(.TARGET)
#magic: $(MAG1) post-magic
# cat ${MAG1} post-magic >$(.TARGET)
#afterinstall:
# ${INSTALL} ${INSTALL_COPY} -o $(MAGICOWN) -g $(MAGICGRP) \
# -m $(MAGICMODE) magic $(DESTDIR)$(MAGIC)
all:
@echo "You didn't run ./configure or ./autogen.sh"
#syscall-linux.txt:
# echo "#include <sys/syscall.h>" | cpp -dM | grep '^#define __NR_' | \
# LC_ALL=C sed -r -n -e 's/^\#define[ \t]+__NR_([a-z0-9_]+)[ \t]+([0-9]+)(.*)/ [\2] = "\1",/p' >> $@ ;\
#.include <bsd.prog.mk>