summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2022-10-06 13:55:55 +0100
committerKatolaZ <katolaz@freaknet.org>2022-10-06 13:55:55 +0100
commit4a11b530c517538918459c0df5842f8d9afa7607 (patch)
tree7cc7bf46d450dfb64e01c36d292486be47e5b044
parent304656477bb4f6c68b5a24a5cd8bbb49d1403cdf (diff)
add LICENSE and Makefile
-rw-r--r--LICENSE15
-rw-r--r--Makefile25
-rw-r--r--README.md4
3 files changed, 44 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..66c6382
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2020 Vincenzo "KatolaZ" Nicosia <katolaz@freaknet.org>
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fa58aa4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+# gridcal - compute great-circle distance between two grid locators
+.POSIX:
+
+SRC = gridcal.c
+OBJ = ${SRC:.c=.o}
+
+all: options gridcal
+
+options:
+ @echo "-+- build options -+-"
+ @echo "PREFIX = ${PREFIX}"
+ @echo "CFLAGS = ${CFLAGS}"
+ @echo "LDFLAGS = ${LDFLAGS}"
+ @echo "CC = ${CC}"
+ @echo "-+-+-+-+-+-+-+-+-+-+-"
+
+gridcal: ${OBJ}
+ $(CC) $(LDFLAGS) -o $@ $(OBJ) -lm
+
+debug: clean
+ ${MAKE} CFLAGS="${DEBUG}" all
+
+clean:
+ rm -f gridcal ${OBJ}
+
diff --git a/README.md b/README.md
index 6315c3e..af7d4da 100644
--- a/README.md
+++ b/README.md
@@ -38,4 +38,8 @@ Dependencies
`gridcal` is written in ANSI C has no dependencies.
+License
+=======
+`gridcal` is free software. It can be used, modified, distributed under
+the terms of the ISC License. See the file LICENSE for more information.