From 54eae9246240d2f364e2e3cb09cef9ebdbdd94b1 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Wed, 24 Jul 2019 17:50:05 +0200 Subject: Rework the Makefile a little Ensure it's portable Get rid of NAME macro Replace build target with a simple dependency target Add clean target --- config.mk | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'config.mk') diff --git a/config.mk b/config.mk index f17a5d6..5bbe0b7 100644 --- a/config.mk +++ b/config.mk @@ -1,10 +1,5 @@ -NAME=gramscii -VERSION=0.1 - PREFIX = /usr/local -BINDIR = $(PREFIX)/bin -MANDIR = $(PREFIX)/share/man - -CFLAGS=-O3 -std=c90 -pedantic -Wall +BINDIR = ${PREFIX}/bin +MANDIR = ${PREFIX}/share/man -CC=cc +CFLAGS = -O3 -std=c90 -pedantic -Wall -- cgit v1.2.3 From 21ab3617b0ba49ce8181666679714ff7397dac8b Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 24 Jul 2019 22:53:12 +0100 Subject: add CC option to config.mk (commented) --- config.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'config.mk') diff --git a/config.mk b/config.mk index 5bbe0b7..f06b872 100644 --- a/config.mk +++ b/config.mk @@ -3,3 +3,4 @@ BINDIR = ${PREFIX}/bin MANDIR = ${PREFIX}/share/man CFLAGS = -O3 -std=c90 -pedantic -Wall +##CC = cc -- cgit v1.2.3