summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-03-31 17:57:16 +0200
committerChristoph Berg <myon@debian.org>2020-03-31 17:57:16 +0200
commit2ba1bab937ec201b31cf786c93bbf0539a8e047a (patch)
treeb06e844fe4026d0c81e92acabe4add6e9438cf71 /tools/Makefile
parent721c02f52e5177a640c892c7958012dba3b9e520 (diff)
parentc2bdd8f8d96bf5329672163cc0905a22589d26d3 (diff)
Update upstream source from tag 'upstream/20200227+py3+20200213'
Update to upstream version '20200227+py3+20200213' with Debian dir c0f9099523ece3eab9e2cb891c746aea7e83cefc
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
new file mode 100644
index 0000000..a9f08af
--- /dev/null
+++ b/tools/Makefile
@@ -0,0 +1,35 @@
+#
+#
+# Makefile for serialsniff
+#
+# Author: IT2 Stuart Blake Tener, USNR (N3GWG)
+#
+# Version 1.00
+#
+# This makefile checks to see if we are running under the OS "Darwin"
+# and passes the proper macro flag ("MACOS") if we are.
+#
+# Incidentally, it is noteworthy that MacOS (Darwin) is not the only
+# operating system which is deficient some of the library routines
+# MacOS is currently defficient. Thus, it is instructive that other
+# operating systems names might need to be added for compilation to
+# become occurring in their environments.
+#
+#
+
+ifndef SYSNAME
+ SYSNAME := $(shell uname -s)
+ ifeq ($(SYSNAME),Darwin)
+ MYFLAGS := "-DMACOS"
+ REMOVE := srm -vrfz
+ else
+ REMOVE := rm -rf
+ endif
+endif
+
+serialsniff: serialsniff.c
+ $(CC) $? -o $@ $(LDFLAGS) $(CFLAGS) $(MYFLAGS)
+
+clean:
+ $(REMOVE) serialsniff *~ *.o *.bak core tags shar a.out
+