aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

commit cf2290f59aa0c7b5a3b5b059f1de5273dfa25bb4
parent 82749de8f2f13f34e0158c17bbb2991a2c0ab5ec
Author: xplshn <anto@xplshn.com.ar>
Date:   Sat, 28 Nov 2026 11:51:51 -0300

ninqu.rules: one libutil rule, the os files guard themselves

Diffstat:
Mninqu.rules | 68++++++--------------------------------------------------------------
1 file changed, 6 insertions(+), 62 deletions(-)

diff --git a/ninqu.rules b/ninqu.rules @@ -38,76 +38,20 @@ (feature core-lib) (exec $(AR) $(ARFLAGS) $(OUT) $(IN))) + ; a file of one system (net_linux.c, passwd_obsd.c) keeps its code under + ; that system's #if, so every file is compiled everywhere and the others + ; come out empty (rule LIBUTIL_OBJ (glob "shared/libutil/*.c") - (skip "diskutil_fbsd.c" "diskutil_linux.c" "diskutil_nbsd.c" - "diskutil_obsd.c" "diskutil_posix.c" - "filesystem_linux.c" "filesystem_posix.c" - "getopt_darwin.c" "getopt_dfly.c" "getopt_fbsd.c" - "getopt_linux.c" "getopt_nbsd.c" "getopt_obsd.c" "getopt_posix.c" - "net_linux.c" "net_posix.c" - "passwd_dfly.c" "passwd_fbsd.c" "passwd_linux.c" - "passwd_nbsd.c" "passwd_obsd.c" "passwd_posix.c" - "proc_linux.c" "proc_posix.c" - "reboot_linux.c" "reboot_posix.c" - "session_linux.c" "session_posix.c" - "sysinfo_linux.c" "sysinfo_posix.c" - "timer_linux.c" "timer_posix.c" - "tty_linux.c" "tty_posix.c" - "kmap_linux.c" "kmap_wscons.c" "kmap_fbsd.c" "kmap_posix.c") - (dep $(MATCH) FEATURES_H) - (after NOFORK_LIST_H) - (out "$(STEM).o") - (exec $(CC) $(CPPFLAGS_LIBUTIL) -Ishared/libutil $(CFLAGS) -c -o $(OUT) $(MATCH))) - - (rule LIBUTIL_OS_OBJ - (glob "shared/libutil/diskutil_fbsd.c" - "shared/libutil/diskutil_linux.c" - "shared/libutil/diskutil_nbsd.c" - "shared/libutil/diskutil_obsd.c" - "shared/libutil/diskutil_posix.c" - "shared/libutil/filesystem_linux.c" - "shared/libutil/filesystem_posix.c" - "shared/libutil/getopt_darwin.c" - "shared/libutil/getopt_dfly.c" - "shared/libutil/getopt_fbsd.c" - "shared/libutil/getopt_linux.c" - "shared/libutil/getopt_nbsd.c" - "shared/libutil/getopt_obsd.c" - "shared/libutil/getopt_posix.c" - "shared/libutil/net_linux.c" - "shared/libutil/net_posix.c" - "shared/libutil/passwd_dfly.c" - "shared/libutil/passwd_fbsd.c" - "shared/libutil/passwd_linux.c" - "shared/libutil/passwd_nbsd.c" - "shared/libutil/passwd_obsd.c" - "shared/libutil/passwd_posix.c" - "shared/libutil/proc_linux.c" - "shared/libutil/proc_posix.c" - "shared/libutil/reboot_linux.c" - "shared/libutil/reboot_posix.c" - "shared/libutil/session_linux.c" - "shared/libutil/session_posix.c" - "shared/libutil/sysinfo_linux.c" - "shared/libutil/sysinfo_posix.c" - "shared/libutil/timer_linux.c" - "shared/libutil/timer_posix.c" - "shared/libutil/tty_linux.c" - "shared/libutil/tty_posix.c" - "shared/libutil/kmap_linux.c" - "shared/libutil/kmap_wscons.c" - "shared/libutil/kmap_fbsd.c" - "shared/libutil/kmap_posix.c") - (dep $(MATCH) "shared/diskutil.h" "shared/filesystem.h" "shared/net.h" "shared/passwd.h" + (dep $(MATCH) "shared/accounts.h" "shared/diskutil.h" "shared/filesystem.h" "shared/net.h" "shared/passwd.h" "shared/proc.h" "shared/reboot.h" "shared/session.h" "shared/sysinfo.h" "shared/timer.h" "shared/util.h" "shared/kmap.h" FEATURES_H) (after NOFORK_LIST_H) - (out "shared/libutil/$(BASESTEM).o") + (out "$(STEM).o") (exec $(CC) $(CPPFLAGS_LIBUTIL) -Ishared -Ishared/libutil $(CFLAGS) -c -o $(OUT) $(MATCH))) (rule LIBUTIL - (dep LIBUTIL_OBJ LIBUTIL_OS_OBJ) + (dep LIBUTIL_OBJ) (out "shared/libutil/libutil.a") (description "allocation, error reporting, and string helpers shared by every tool") (feature core-lib)