commit e8609ba

shrub  ·  2026-07-23 11:21:51 +0000 UTC
parent 6dc3301
switch build to ninja
27 files changed,  +302, -389
+2, -0
1@@ -0,0 +1,2 @@
2+.ninja_log
3+.ninja_deps
+0, -24
 1@@ -1,24 +0,0 @@
 2-.POSIX:
 3-
 4-#RECURSIVE MAKE CONSIDERED USEFUL?
 5-SUBDIRS = compat apply col ctags finger jot look makefs pr rs script
 6-all:
 7-	@set -e; \
 8-	for dir in $(SUBDIRS); do \
 9-		echo "> $$dir"; \
10-		(cd "$$dir" && $(MAKE) all); \
11-	done
12-
13-clean:
14-	@set -e; \
15-	for dir in $(SUBDIRS); do \
16-		echo "> $$dir"; \
17-		(cd "$$dir" && $(MAKE) clean); \
18-	done
19-
20-install:
21-	@set -e; \
22-	for dir in $(SUBDIRS); do \
23-		echo "> $$dir"; \
24-		(cd "$$dir" && $(MAKE) install); \
25-	done
+10, -1
 1@@ -17,11 +17,20 @@ you need:
 2 
 3 - C compiler
 4 - yacc
 5-- make
 6+- ninja
 7 - libz
 8 
 9 on musl you may also need: 
10 
11 - musl-fts
12 
13+to build: 
14+    
15+    ninja
16+
17+to install: 
18+
19+    ninja install # as root
20+
21+
22 all netbsd code under it's original license.
+0, -31
 1@@ -1,31 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = apply
 5-SRCS = apply.c
 6-COMPATLIB = ../compat/libnetcompat.a
 7-MAN = apply.1
 8-
 9-CC = cc
10-CFLAGS = -O2
11-CPPFLAGS = -I../compat -include ../compat/netcompat.h
12-DESTDIR =
13-BINDIR = /usr/local/bin
14-MANDIR = /usr/local/share/man
15-
16-all: $(PROG)
17-
18-$(PROG): $(SRCS) $(COMPATLIB)
19-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
20-
21-$(COMPATLIB):
22-	(cd ../compat && $(MAKE) all)
23-
24-install: $(PROG)
25-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
26-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
27-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
28-	cp $(MAN) $(DESTDIR)$(MANDIR)/man1/$(MAN)
29-	chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN)
30-
31-clean:
32-	rm -f $(PROG) *.o
+12, -0
 1@@ -0,0 +1,12 @@
 2+apply_cflags = $cflags -Icompat -include compat/netcompat.h
 3+
 4+build apply/apply.o: cc apply/apply.c
 5+  cflags = $apply_cflags
 6+
 7+build apply/apply: link apply/apply.o compat/libnetcompat.a
 8+build apply/all: phony apply/apply
 9+build apply/install: install1 apply/apply | apply/apply.1
10+  bin = apply/apply
11+  name = apply
12+  man = apply/apply.1
13+  manname = apply.1
+58, -0
 1@@ -0,0 +1,58 @@
 2+# i know this is a ninja file, but you're allowed to edit it.
 3+# you can also pass things on the command line if you like, eg
 4+#
 5+#     CC=clang ninja
 6+
 7+cc = $${CC:-cc}
 8+cflags = $${CFLAGS:--O2}
 9+ldflags = $${LDFLAGS:-}
10+ar = $${AR:-ar}
11+ranlib = $${RANLIB:-ranlib}
12+prefix = $${PREFIX:-/usr/local}
13+destdir = $${DESTDIR:-}
14+bindir = $destdir$${BINDIR:-$prefix/bin}
15+mandir = $destdir$${MANDIR:-$prefix/share/man}
16+datadir = $destdir$${DATADIR:-$prefix/share}
17+
18+rule cc
19+  command = $cc $cflags -MMD -MF $out.d -c -o $out $in
20+  deps = gcc
21+  depfile = $out.d
22+  description = cc $out
23+
24+rule link
25+  command = $cc $ldflags -o $out $in $libs
26+  description = link $out
27+
28+rule ar
29+  command = rm -f $out && $ar -rc $out $in && $ranlib $out
30+  description = ar $out
31+
32+rule install1
33+  command = mkdir -p $bindir $mandir/man1 && cp $bin $bindir/ && chmod 755 $bindir/$name && cp $man $mandir/man1/ && chmod 644 $mandir/man1/$manname
34+  description = install $name
35+
36+rule install8
37+  command = mkdir -p $bindir $mandir/man8 && cp $bin $bindir/ && chmod 755 $bindir/$name && cp $man $mandir/man8/ && chmod 644 $mandir/man8/$manname
38+  description = install $name
39+
40+rule install_look
41+  command = mkdir -p $bindir $mandir/man1 $datadir/dict && cp $bin $bindir/ && chmod 755 $bindir/$name && cp $man $mandir/man1/ && chmod 644 $mandir/man1/$manname && cp $dict $datadir/dict/words && chmod 644 $datadir/dict/words
42+  description = install $name
43+
44+subninja compat/build.ninja
45+subninja apply/build.ninja
46+subninja col/build.ninja
47+subninja ctags/build.ninja
48+subninja finger/build.ninja
49+subninja jot/build.ninja
50+subninja look/build.ninja
51+subninja makefs/build.ninja
52+subninja pr/build.ninja
53+subninja rs/build.ninja
54+subninja script/build.ninja
55+
56+build all: phony compat/all apply/all col/all ctags/all finger/all jot/all look/all makefs/all pr/all rs/all script/all
57+build install: phony apply/install col/install ctags/install finger/install jot/install look/install makefs/install pr/install rs/install script/install
58+
59+default all
+0, -31
 1@@ -1,31 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = col
 5-SRCS = col.c
 6-COMPATLIB = ../compat/libnetcompat.a
 7-MAN = col.1
 8-
 9-CC = cc
10-CFLAGS = -O2
11-CPPFLAGS = -I../compat -include ../compat/netcompat.h
12-DESTDIR =
13-BINDIR = /usr/local/bin
14-MANDIR = /usr/local/share/man
15-
16-all: $(PROG)
17-
18-$(PROG): $(SRCS) $(COMPATLIB)
19-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
20-
21-$(COMPATLIB):
22-	(cd ../compat && $(MAKE) all)
23-
24-install: $(PROG)
25-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
26-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
27-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
28-	cp $(MAN) $(DESTDIR)$(MANDIR)/man1/$(MAN)
29-	chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN)
30-
31-clean:
32-	rm -f $(PROG) *.o
+12, -0
 1@@ -0,0 +1,12 @@
 2+col_cflags = $cflags -Icompat -include compat/netcompat.h
 3+
 4+build col/col.o: cc col/col.c
 5+  cflags = $col_cflags
 6+
 7+build col/col: link col/col.o compat/libnetcompat.a
 8+build col/all: phony col/col
 9+build col/install: install1 col/col | col/col.1
10+  bin = col/col
11+  name = col
12+  man = col/col.1
13+  manname = col.1
+0, -36
 1@@ -1,36 +0,0 @@
 2-.POSIX:
 3-
 4-LIB = libnetcompat.a
 5-SRCS = \
 6-	db.c efun.c errc.c fgetln.c fparseln.c getmode.c getprogname.c \
 7-	pwcache.c reallocarr.c raise_default_signal.c setgroupent.c \
 8-	setpassent.c setprogname.c shquote.c strlcat.c strlcpy.c \
 9-	strsuftoll.c strtoi.c strtou.c unvis.c verrc.c vis.c vwarnc.c \
10-	warnc.c
11-OBJS = \
12-	db.o efun.o errc.o fgetln.o fparseln.o getmode.o getprogname.o \
13-	pwcache.o reallocarr.o raise_default_signal.o setgroupent.o \
14-	setpassent.o setprogname.o shquote.o strlcat.o strlcpy.o \
15-	strsuftoll.o strtoi.o strtou.o unvis.o verrc.o vis.o vwarnc.o \
16-	warnc.o
17-
18-CC = cc
19-AR = ar
20-RANLIB = ranlib
21-CFLAGS = -O2
22-CPPFLAGS = -DHAVE_NBTOOL_CONFIG_H=1 -I. -include netcompat.h
23-
24-all: $(LIB)
25-
26-.c.o:
27-	$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
28-
29-$(LIB): $(OBJS)
30-	rm -f $(LIB)
31-	$(AR) -rc $(LIB) $(OBJS)
32-	$(RANLIB) $(LIB)
33-
34-install:
35-
36-clean:
37-	rm -f $(LIB) $(OBJS)
+54, -0
 1@@ -0,0 +1,54 @@
 2+compat_cflags = $cflags -DHAVE_NBTOOL_CONFIG_H=1 -Icompat -include compat/netcompat.h
 3+
 4+build compat/db.o: cc compat/db.c
 5+  cflags = $compat_cflags
 6+build compat/efun.o: cc compat/efun.c
 7+  cflags = $compat_cflags
 8+build compat/errc.o: cc compat/errc.c
 9+  cflags = $compat_cflags
10+build compat/fgetln.o: cc compat/fgetln.c
11+  cflags = $compat_cflags
12+build compat/fparseln.o: cc compat/fparseln.c
13+  cflags = $compat_cflags
14+build compat/getmode.o: cc compat/getmode.c
15+  cflags = $compat_cflags
16+build compat/getprogname.o: cc compat/getprogname.c
17+  cflags = $compat_cflags
18+build compat/pwcache.o: cc compat/pwcache.c
19+  cflags = $compat_cflags
20+build compat/reallocarr.o: cc compat/reallocarr.c
21+  cflags = $compat_cflags
22+build compat/raise_default_signal.o: cc compat/raise_default_signal.c
23+  cflags = $compat_cflags
24+build compat/setgroupent.o: cc compat/setgroupent.c
25+  cflags = $compat_cflags
26+build compat/setpassent.o: cc compat/setpassent.c
27+  cflags = $compat_cflags
28+build compat/setprogname.o: cc compat/setprogname.c
29+  cflags = $compat_cflags
30+build compat/shquote.o: cc compat/shquote.c
31+  cflags = $compat_cflags
32+build compat/strlcat.o: cc compat/strlcat.c
33+  cflags = $compat_cflags
34+build compat/strlcpy.o: cc compat/strlcpy.c
35+  cflags = $compat_cflags
36+build compat/strsuftoll.o: cc compat/strsuftoll.c
37+  cflags = $compat_cflags
38+build compat/strtoi.o: cc compat/strtoi.c
39+  cflags = $compat_cflags
40+build compat/strtou.o: cc compat/strtou.c
41+  cflags = $compat_cflags
42+build compat/unvis.o: cc compat/unvis.c
43+  cflags = $compat_cflags
44+build compat/verrc.o: cc compat/verrc.c
45+  cflags = $compat_cflags
46+build compat/vis.o: cc compat/vis.c
47+  cflags = $compat_cflags
48+build compat/vwarnc.o: cc compat/vwarnc.c
49+  cflags = $compat_cflags
50+build compat/warnc.o: cc compat/warnc.c
51+  cflags = $compat_cflags
52+
53+build compat/libnetcompat.a: ar compat/db.o compat/efun.o compat/errc.o compat/fgetln.o compat/fparseln.o compat/getmode.o compat/getprogname.o compat/pwcache.o compat/reallocarr.o compat/raise_default_signal.o compat/setgroupent.o compat/setpassent.o compat/setprogname.o compat/shquote.o compat/strlcat.o compat/strlcpy.o compat/strsuftoll.o compat/strtoi.o compat/strtou.o compat/unvis.o compat/verrc.o compat/vis.o compat/vwarnc.o compat/warnc.o
54+build compat/all: phony compat/libnetcompat.a
55+build compat/install: phony
+2, -1
 1@@ -109,7 +109,8 @@ typedef unsigned int u_int;
 2 typedef unsigned long u_long;
 3 #endif
 4 
 5-#ifndef daddr_t
 6+#if !defined(__linux__) && !defined(__APPLE__) && !defined(__FreeBSD__) && \
 7+    !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
 8 typedef int64_t daddr_t;
 9 #endif
10 
+0, -31
 1@@ -1,31 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = ctags
 5-SRCS = C.c ctags.c fortran.c lisp.c print.c tree.c yacc.c
 6-COMPATLIB = ../compat/libnetcompat.a
 7-MAN = ctags.1
 8-
 9-CC = cc
10-CFLAGS = -O2
11-CPPFLAGS = -I. -I../compat -include ../compat/netcompat.h
12-DESTDIR =
13-BINDIR = /usr/local/bin
14-MANDIR = /usr/local/share/man
15-
16-all: $(PROG)
17-
18-$(PROG): $(SRCS) $(COMPATLIB)
19-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
20-
21-$(COMPATLIB):
22-	(cd ../compat && $(MAKE) all)
23-
24-install: $(PROG)
25-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
26-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
27-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
28-	cp $(MAN) $(DESTDIR)$(MANDIR)/man1/$(MAN)
29-	chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN)
30-
31-clean:
32-	rm -f $(PROG) *.o
+24, -0
 1@@ -0,0 +1,24 @@
 2+ctags_cflags = $cflags -Ictags -Icompat -include compat/netcompat.h
 3+
 4+build ctags/C.o: cc ctags/C.c
 5+  cflags = $ctags_cflags
 6+build ctags/ctags.o: cc ctags/ctags.c
 7+  cflags = $ctags_cflags
 8+build ctags/fortran.o: cc ctags/fortran.c
 9+  cflags = $ctags_cflags
10+build ctags/lisp.o: cc ctags/lisp.c
11+  cflags = $ctags_cflags
12+build ctags/print.o: cc ctags/print.c
13+  cflags = $ctags_cflags
14+build ctags/tree.o: cc ctags/tree.c
15+  cflags = $ctags_cflags
16+build ctags/yacc.o: cc ctags/yacc.c
17+  cflags = $ctags_cflags
18+
19+build ctags/ctags: link ctags/C.o ctags/ctags.o ctags/fortran.o ctags/lisp.o ctags/print.o ctags/tree.o ctags/yacc.o compat/libnetcompat.a
20+build ctags/all: phony ctags/ctags
21+build ctags/install: install1 ctags/ctags | ctags/ctags.1
22+  bin = ctags/ctags
23+  name = ctags
24+  man = ctags/ctags.1
25+  manname = ctags.1
+0, -32
 1@@ -1,32 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = finger
 5-SRCS = finger.c lprint.c net.c sprint.c util.c utmpentry.c
 6-COMPATLIB = ../compat/libnetcompat.a
 7-MAN = finger.1
 8-
 9-CC = cc
10-CFLAGS = -O2
11-CPPFLAGS = -I. -I../compat -include ../compat/netcompat.h \
12-	-DSUPPORT_UTMP -DINET6
13-DESTDIR =
14-BINDIR = /usr/local/bin
15-MANDIR = /usr/local/share/man
16-
17-all: $(PROG)
18-
19-$(PROG): $(SRCS) $(COMPATLIB)
20-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
21-
22-$(COMPATLIB):
23-	(cd ../compat && $(MAKE) all)
24-
25-install: $(PROG)
26-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
27-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
28-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
29-	cp $(MAN) $(DESTDIR)$(MANDIR)/man1/$(MAN)
30-	chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN)
31-
32-clean:
33-	rm -f $(PROG) *.o
+22, -0
 1@@ -0,0 +1,22 @@
 2+finger_cflags = $cflags -Ifinger -Icompat -include compat/netcompat.h -DSUPPORT_UTMP -DINET6
 3+
 4+build finger/finger.o: cc finger/finger.c
 5+  cflags = $finger_cflags
 6+build finger/lprint.o: cc finger/lprint.c
 7+  cflags = $finger_cflags
 8+build finger/net.o: cc finger/net.c
 9+  cflags = $finger_cflags
10+build finger/sprint.o: cc finger/sprint.c
11+  cflags = $finger_cflags
12+build finger/util.o: cc finger/util.c
13+  cflags = $finger_cflags
14+build finger/utmpentry.o: cc finger/utmpentry.c
15+  cflags = $finger_cflags
16+
17+build finger/finger: link finger/finger.o finger/lprint.o finger/net.o finger/sprint.o finger/util.o finger/utmpentry.o compat/libnetcompat.a
18+build finger/all: phony finger/finger
19+build finger/install: install1 finger/finger | finger/finger.1
20+  bin = finger/finger
21+  name = finger
22+  man = finger/finger.1
23+  manname = finger.1
+0, -32
 1@@ -1,32 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = jot
 5-SRCS = jot.c
 6-COMPATLIB = ../compat/libnetcompat.a
 7-MAN = jot.1
 8-
 9-CC = cc
10-CFLAGS = -O2
11-CPPFLAGS = -I../compat -include ../compat/netcompat.h
12-LDLIBS = -lm
13-DESTDIR =
14-BINDIR = /usr/local/bin
15-MANDIR = /usr/local/share/man
16-
17-all: $(PROG)
18-
19-$(PROG): $(SRCS) $(COMPATLIB)
20-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
21-
22-$(COMPATLIB):
23-	(cd ../compat && $(MAKE) all)
24-
25-install: $(PROG)
26-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
27-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
28-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
29-	cp $(MAN) $(DESTDIR)$(MANDIR)/man1/$(MAN)
30-	chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN)
31-
32-clean:
33-	rm -f $(PROG) *.o
+13, -0
 1@@ -0,0 +1,13 @@
 2+jot_cflags = $cflags -Icompat -include compat/netcompat.h
 3+
 4+build jot/jot.o: cc jot/jot.c
 5+  cflags = $jot_cflags
 6+
 7+build jot/jot: link jot/jot.o compat/libnetcompat.a
 8+  libs = -lm
 9+build jot/all: phony jot/jot
10+build jot/install: install1 jot/jot | jot/jot.1
11+  bin = jot/jot
12+  name = jot
13+  man = jot/jot.1
14+  manname = jot.1
+0, -36
 1@@ -1,36 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = look
 5-SRCS = look.c
 6-COMPATLIB = ../compat/libnetcompat.a
 7-MAN = look.1
 8-DICT = words
 9-
10-CC = cc
11-CFLAGS = -O2
12-CPPFLAGS = -I../compat -include ../compat/netcompat.h
13-DESTDIR =
14-BINDIR = /usr/local/bin
15-MANDIR = /usr/local/share/man
16-DATADIR = /usr/local/share
17-
18-all: $(PROG)
19-
20-$(PROG): $(SRCS) $(COMPATLIB)
21-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
22-
23-$(COMPATLIB):
24-	(cd ../compat && $(MAKE) all)
25-
26-install: $(PROG)
27-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 \
28-		$(DESTDIR)$(DATADIR)/dict
29-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
30-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
31-	cp $(MAN) $(DESTDIR)$(MANDIR)/man1/$(MAN)
32-	chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN)
33-	cp $(DICT) $(DESTDIR)$(DATADIR)/dict/words
34-	chmod 644 $(DESTDIR)$(DATADIR)/dict/words
35-
36-clean:
37-	rm -f $(PROG) *.o
+13, -0
 1@@ -0,0 +1,13 @@
 2+look_cflags = $cflags -Icompat -include compat/netcompat.h
 3+
 4+build look/look.o: cc look/look.c
 5+  cflags = $look_cflags
 6+
 7+build look/look: link look/look.o compat/libnetcompat.a
 8+build look/all: phony look/look
 9+build look/install: install_look look/look | look/look.1 look/words
10+  bin = look/look
11+  name = look
12+  man = look/look.1
13+  manname = look.1
14+  dict = look/words
+0, -40
 1@@ -1,40 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = makefs
 5-COMPATLIB = ../compat/libnetcompat.a
 6-MAN = makefs.8
 7-
 8-CC = cc
 9-CFLAGS = -O2
10-CPPFLAGS = -DHAVE_NBTOOL_CONFIG_H=1 -I. -I./cd9660 -I./mtree -I./fs/cd9660 -I../compat -include ../compat/netcompat.h
11-LDLIBS = -lm -lz
12-
13-SRCS = \
14-	makefs.c walk.c \
15-	cd9660.c \
16-	cd9660/cd9660_strings.c cd9660/cd9660_debug.c cd9660/cd9660_eltorito.c \
17-	cd9660/cd9660_write.c cd9660/cd9660_conversion.c cd9660/iso9660_rrip.c \
18-	cd9660/cd9660_archimedes.c \
19-	mtree/getid.c mtree/misc.c mtree/spec.c mtree/pack_dev.c mtree/stat_flags.c
20-
21-DESTDIR =
22-BINDIR = /usr/local/bin
23-MANDIR = /usr/local/share/man
24-
25-all: $(PROG)
26-
27-$(PROG): $(SRCS) $(COMPATLIB)
28-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
29-
30-$(COMPATLIB):
31-	(cd ../compat && $(MAKE) all)
32-
33-install: $(PROG)
34-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man8
35-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
36-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
37-	cp $(MAN) $(DESTDIR)$(MANDIR)/man8/$(MAN)
38-	chmod 644 $(DESTDIR)$(MANDIR)/man8/$(MAN)
39-
40-clean:
41-	rm -f $(PROG) *.o */*.o */*/*.o
+41, -0
 1@@ -0,0 +1,41 @@
 2+makefs_cflags = $cflags -DHAVE_NBTOOL_CONFIG_H=1 -Imakefs -Imakefs/cd9660 -Imakefs/mtree -Imakefs/fs/cd9660 -Icompat -include compat/netcompat.h
 3+
 4+build makefs/makefs.o: cc makefs/makefs.c
 5+  cflags = $makefs_cflags
 6+build makefs/walk.o: cc makefs/walk.c
 7+  cflags = $makefs_cflags
 8+build makefs/cd9660.o: cc makefs/cd9660.c
 9+  cflags = $makefs_cflags
10+build makefs/cd9660/cd9660_strings.o: cc makefs/cd9660/cd9660_strings.c
11+  cflags = $makefs_cflags
12+build makefs/cd9660/cd9660_debug.o: cc makefs/cd9660/cd9660_debug.c
13+  cflags = $makefs_cflags
14+build makefs/cd9660/cd9660_eltorito.o: cc makefs/cd9660/cd9660_eltorito.c
15+  cflags = $makefs_cflags
16+build makefs/cd9660/cd9660_write.o: cc makefs/cd9660/cd9660_write.c
17+  cflags = $makefs_cflags
18+build makefs/cd9660/cd9660_conversion.o: cc makefs/cd9660/cd9660_conversion.c
19+  cflags = $makefs_cflags
20+build makefs/cd9660/iso9660_rrip.o: cc makefs/cd9660/iso9660_rrip.c
21+  cflags = $makefs_cflags
22+build makefs/cd9660/cd9660_archimedes.o: cc makefs/cd9660/cd9660_archimedes.c
23+  cflags = $makefs_cflags
24+build makefs/mtree/getid.o: cc makefs/mtree/getid.c
25+  cflags = $makefs_cflags
26+build makefs/mtree/misc.o: cc makefs/mtree/misc.c
27+  cflags = $makefs_cflags
28+build makefs/mtree/spec.o: cc makefs/mtree/spec.c
29+  cflags = $makefs_cflags
30+build makefs/mtree/pack_dev.o: cc makefs/mtree/pack_dev.c
31+  cflags = $makefs_cflags
32+build makefs/mtree/stat_flags.o: cc makefs/mtree/stat_flags.c
33+  cflags = $makefs_cflags
34+
35+build makefs/makefs: link makefs/makefs.o makefs/walk.o makefs/cd9660.o makefs/cd9660/cd9660_strings.o makefs/cd9660/cd9660_debug.o makefs/cd9660/cd9660_eltorito.o makefs/cd9660/cd9660_write.o makefs/cd9660/cd9660_conversion.o makefs/cd9660/iso9660_rrip.o makefs/cd9660/cd9660_archimedes.o makefs/mtree/getid.o makefs/mtree/misc.o makefs/mtree/spec.o makefs/mtree/pack_dev.o makefs/mtree/stat_flags.o compat/libnetcompat.a
36+  libs = -lm -lz
37+build makefs/all: phony makefs/makefs
38+build makefs/install: install8 makefs/makefs | makefs/makefs.8
39+  bin = makefs/makefs
40+  name = makefs
41+  man = makefs/makefs.8
42+  manname = makefs.8
+0, -31
 1@@ -1,31 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = pr
 5-SRCS = pr.c egetopt.c
 6-COMPATLIB = ../compat/libnetcompat.a
 7-MAN = pr.1
 8-
 9-CC = cc
10-CFLAGS = -O2
11-CPPFLAGS = -I../compat -include ../compat/netcompat.h
12-DESTDIR =
13-BINDIR = /usr/local/bin
14-MANDIR = /usr/local/share/man
15-
16-all: $(PROG)
17-
18-$(PROG): $(SRCS) $(COMPATLIB)
19-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
20-
21-$(COMPATLIB):
22-	(cd ../compat && $(MAKE) all)
23-
24-install: $(PROG)
25-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
26-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
27-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
28-	cp $(MAN) $(DESTDIR)$(MANDIR)/man1/$(MAN)
29-	chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN)
30-
31-clean:
32-	rm -f $(PROG) *.o
+14, -0
 1@@ -0,0 +1,14 @@
 2+pr_cflags = $cflags -Icompat -include compat/netcompat.h
 3+
 4+build pr/pr.o: cc pr/pr.c
 5+  cflags = $pr_cflags
 6+build pr/egetopt.o: cc pr/egetopt.c
 7+  cflags = $pr_cflags
 8+
 9+build pr/pr: link pr/pr.o pr/egetopt.o compat/libnetcompat.a
10+build pr/all: phony pr/pr
11+build pr/install: install1 pr/pr | pr/pr.1
12+  bin = pr/pr
13+  name = pr
14+  man = pr/pr.1
15+  manname = pr.1
+0, -31
 1@@ -1,31 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = rs
 5-SRCS = rs.c
 6-COMPATLIB = ../compat/libnetcompat.a
 7-MAN = rs.1
 8-
 9-CC = cc
10-CFLAGS = -O2
11-CPPFLAGS = -I../compat -include ../compat/netcompat.h
12-DESTDIR =
13-BINDIR = /usr/local/bin
14-MANDIR = /usr/local/share/man
15-
16-all: $(PROG)
17-
18-$(PROG): $(SRCS) $(COMPATLIB)
19-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
20-
21-$(COMPATLIB):
22-	(cd ../compat && $(MAKE) all)
23-
24-install: $(PROG)
25-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
26-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
27-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
28-	cp $(MAN) $(DESTDIR)$(MANDIR)/man1/$(MAN)
29-	chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN)
30-
31-clean:
32-	rm -f $(PROG) *.o
+12, -0
 1@@ -0,0 +1,12 @@
 2+rs_cflags = $cflags -Icompat -include compat/netcompat.h
 3+
 4+build rs/rs.o: cc rs/rs.c
 5+  cflags = $rs_cflags
 6+
 7+build rs/rs: link rs/rs.o compat/libnetcompat.a
 8+build rs/all: phony rs/rs
 9+build rs/install: install1 rs/rs | rs/rs.1
10+  bin = rs/rs
11+  name = rs
12+  man = rs/rs.1
13+  manname = rs.1
+0, -32
 1@@ -1,32 +0,0 @@
 2-.POSIX:
 3-
 4-PROG = script
 5-SRCS = script.c
 6-COMPATLIB = ../compat/libnetcompat.a
 7-MAN = script.1
 8-
 9-CC = cc
10-CFLAGS = -O2
11-CPPFLAGS = -I../compat -include ../compat/netcompat.h
12-LDLIBS = -lutil
13-DESTDIR =
14-BINDIR = /usr/local/bin
15-MANDIR = /usr/local/share/man
16-
17-all: $(PROG)
18-
19-$(PROG): $(SRCS) $(COMPATLIB)
20-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(SRCS) $(COMPATLIB) $(LDLIBS)
21-
22-$(COMPATLIB):
23-	(cd ../compat && $(MAKE) all)
24-
25-install: $(PROG)
26-	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
27-	cp $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
28-	chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
29-	cp $(MAN) $(DESTDIR)$(MANDIR)/man1/$(MAN)
30-	chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN)
31-
32-clean:
33-	rm -f $(PROG) *.o
+13, -0
 1@@ -0,0 +1,13 @@
 2+script_cflags = $cflags -Icompat -include compat/netcompat.h
 3+
 4+build script/script.o: cc script/script.c
 5+  cflags = $script_cflags
 6+
 7+build script/script: link script/script.o compat/libnetcompat.a
 8+  libs = -lutil
 9+build script/all: phony script/script
10+build script/install: install1 script/script | script/script.1
11+  bin = script/script
12+  name = script
13+  man = script/script.1
14+  manname = script.1