ref: b22cc88f1a3d9aa53fbd659e45f188497731b687
parent: f2204009a0af770e92b9527b198880b4724e8a1d
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Aug 17 15:26:44 EDT 2023
add plan 9 config, fix mkfile
--- a/mkfile
+++ b/mkfile
@@ -2,7 +2,7 @@
TARG=sox
BIN=/$objtype/bin/audio
-CFLAGS=$CFLAGS -p -D__plan9__ -I/sys/include/npe -Isrc
+CFLAGS=$CFLAGS -p -D__plan9__ -I/sys/include/npe -Isrc -Isrc/plan9
LIB=src/libsox.a$O
OFILES=\
@@ -22,3 +22,7 @@
clean:V:
rm -f [$OS].out $TARG
cd src && mk clean
+
+nuke:V:
+ rm -f [$OS].out *.acid $TARG
+ cd src && mk nuke
--- a/src/mkfile
+++ b/src/mkfile
@@ -1,7 +1,7 @@
</$objtype/mkfile
LIB=libsox.a$O
-CFLAGS=$CFLAGS -p -I/sys/include/npe -D__plan9__ -D__${objtype}__
+CFLAGS=$CFLAGS -p -I/sys/include/npe -D__plan9__ -Iplan9
HFILES=\
adpcms.h aiff.h cvsd.h cvsdfilt.h g711.h g72x.h vox.h raw.h formats.h \
--- /dev/null
+++ b/src/plan9/soxconfig.h
@@ -1,0 +1,10 @@
+#define HAVE_GETTIMEOFDAY
+#define HAVE_MKSTEMP
+#define HAVE_SETENV
+#define HAVE_SIGACTION
+#define HAVE_STRCASECMP
+#define HAVE_SYS_STAT_H
+#define HAVE_SYS_TIME_H
+#define HAVE_SYS_TYPES_H
+#define HAVE_UNISTD_H
+#define NO_REWIND_PIPE