sacc

sacc (saccomys): simple gopher client.
Log | Files | Refs | LICENSE

commit 78f764aea574b619509c5ebb247dab0de1606822
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon, 19 Jun 2017 09:21:36 +0200

Add build base: Makefile, LICENSE, skeleton source

Diffstat:
LICENSE | 13+++++++++++++
Makefile | 20++++++++++++++++++++
config.mk | 9+++++++++
3 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2017 Quentin Rameau <quinq@fifth.space> + +Permission to use, copy, modify, and 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 @@ -0,0 +1,20 @@ +# sacc: saccomys gopher client +# See LICENSE file for copyright and license details. +.POSIX: + +include config.mk + +BIN = sacc + +all: $(BIN) + +clean: + rm -f $(BIN) + +install: + mkdir -p $(PREFIX)/bin/ + cp $(BIN) $(PREFIX)/bin/ + chmod 555 $(PREFIX)/bin/$(BIN) + +uninstall: + rm -f $(PREFIX)/bin/$(BIN) diff --git a/config.mk b/config.mk @@ -0,0 +1,9 @@ +# Install paths +PREFIX = /usr/local + +# Stock FLAGS +SACCCFLAGS = -D_POSIX_C_SOURCE=200809L $(CFLAGS) +SACCLDFLAGS = $(LDFLAGS) + +.c: + $(CC) -o $@ $(SACCCFLAGS) $(SACCLDFLAGS) $<