aboutsummaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorMatthew Poletiek <matthew.poletiek@gmail.com>2020-12-08 21:03:16 -0600
committerMatthew Poletiek <matthew.poletiek@gmail.com>2020-12-08 21:03:16 -0600
commite99416456afd4aa8bde42016826f9a345291cbf3 (patch)
treea7a95639cd1cb5dbe2d91a2ca8e8defafac4296d /tools/Makefile
parent194cf4e5e0b6a2811103a9b739a72b9afe2b886c (diff)
downloadchirp-e99416456afd4aa8bde42016826f9a345291cbf3.tar.gz
chirp-e99416456afd4aa8bde42016826f9a345291cbf3.tar.xz
Initial Commit
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
+