From 4a11b530c517538918459c0df5842f8d9afa7607 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 6 Oct 2022 13:55:55 +0100 Subject: add LICENSE and Makefile --- LICENSE | 15 +++++++++++++++ Makefile | 25 +++++++++++++++++++++++++ README.md | 4 ++++ 3 files changed, 44 insertions(+) create mode 100644 LICENSE create mode 100644 Makefile 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 + +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. -- cgit v1.2.3