aboutsummaryrefslogtreecommitdiffstats
path: root/misc_cmds
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-10 09:29:27 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-10 09:29:27 -0400
commitb97536ac7d04672f18be04ae717f48ba84fb1510 (patch)
treef2647fa1152d029f02916af618a2f3ab851c3d04 /misc_cmds
parent8199e6fb5d6fc34fdb82786405185ea11856dd48 (diff)
downloadapple_cmds-b97536ac7d04672f18be04ae717f48ba84fb1510.tar.gz
apple_cmds-b97536ac7d04672f18be04ae717f48ba84fb1510.tar.zst
apple_cmds-b97536ac7d04672f18be04ae717f48ba84fb1510.zip
misc_cmds: All compiled
Diffstat (limited to 'misc_cmds')
-rw-r--r--misc_cmds/Makefile7
-rw-r--r--misc_cmds/calendar/Makefile10
-rw-r--r--misc_cmds/leave/Makefile3
-rw-r--r--misc_cmds/leave/leave.c1
-rw-r--r--misc_cmds/ncal/Makefile6
-rw-r--r--misc_cmds/ncal/ncal.c2
-rw-r--r--misc_cmds/tsort/Makefile3
-rw-r--r--misc_cmds/units/Makefile5
8 files changed, 36 insertions, 1 deletions
diff --git a/misc_cmds/Makefile b/misc_cmds/Makefile
new file mode 100644
index 0000000..4110807
--- /dev/null
+++ b/misc_cmds/Makefile
@@ -0,0 +1,7 @@
+SUBDIR= calendar \
+ leave \
+ ncal \
+ tsort \
+ units
+
+.include <bsd.subdir.mk>
diff --git a/misc_cmds/calendar/Makefile b/misc_cmds/calendar/Makefile
new file mode 100644
index 0000000..f98beae
--- /dev/null
+++ b/misc_cmds/calendar/Makefile
@@ -0,0 +1,10 @@
+# @(#)Makefile 8.1 (Berkeley) 6/6/93
+# $FreeBSD$
+
+PROG= calendar
+SRCS= calendar.c day.c io.c ostern.c paskha.c
+
+FILES= calendars/calendar.freebsd
+FILESDIR= ${SHAREDIR}/calendar
+
+.include <bsd.prog.mk>
diff --git a/misc_cmds/leave/Makefile b/misc_cmds/leave/Makefile
new file mode 100644
index 0000000..1a08221
--- /dev/null
+++ b/misc_cmds/leave/Makefile
@@ -0,0 +1,3 @@
+PROG= leave
+
+.include <bsd.prog.mk>
diff --git a/misc_cmds/leave/leave.c b/misc_cmds/leave/leave.c
index c1db136..69cd3fb 100644
--- a/misc_cmds/leave/leave.c
+++ b/misc_cmds/leave/leave.c
@@ -45,6 +45,7 @@ static char sccsid[] = "@(#)leave.c 8.1 (Berkeley) 6/6/93";
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: src/usr.bin/leave/leave.c,v 1.12 2002/09/04 23:29:03 dwmalone Exp $");
+#include <sys/types.h>
#include <err.h>
#include <ctype.h>
#include <locale.h>
diff --git a/misc_cmds/ncal/Makefile b/misc_cmds/ncal/Makefile
new file mode 100644
index 0000000..96408c6
--- /dev/null
+++ b/misc_cmds/ncal/Makefile
@@ -0,0 +1,6 @@
+PROG= ncal
+SRCS= calendar.c easter.c ncal.c
+
+LDADD=-lncursesw
+
+.include <bsd.prog.mk>
diff --git a/misc_cmds/ncal/ncal.c b/misc_cmds/ncal/ncal.c
index 5a5cbc3..105fa95 100644
--- a/misc_cmds/ncal/ncal.c
+++ b/misc_cmds/ncal/ncal.c
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include <calendar.h>
+#include "calendar.h"
#include <ctype.h>
#include <err.h>
#include <langinfo.h>
diff --git a/misc_cmds/tsort/Makefile b/misc_cmds/tsort/Makefile
new file mode 100644
index 0000000..44c9898
--- /dev/null
+++ b/misc_cmds/tsort/Makefile
@@ -0,0 +1,3 @@
+PROG= tsort
+
+.include <bsd.prog.mk>
diff --git a/misc_cmds/units/Makefile b/misc_cmds/units/Makefile
new file mode 100644
index 0000000..e9f84b8
--- /dev/null
+++ b/misc_cmds/units/Makefile
@@ -0,0 +1,5 @@
+PROG= units
+FILES= units.lib
+FILESDIR= ${SHAREDIR}/misc
+
+.include <bsd.prog.mk>