rcx

library of miscellaneous bits of C code
git clone git://git.rr3.xyz/rcx
Log | Files | Refs | README | LICENSE

commit 195f2b610a75a7e5a5e5efc5c38eeef162f39685
parent 9d52b938b2d842045bd190f07cb018591adac68d
Author: Robert Russell <robertrussell.72001@gmail.com>
Date:   Fri,  2 Sep 2022 11:27:02 -0700

Reorganize Makefile and config.mk

Diffstat:
MMakefile | 1-
Mconfig.mk | 7++++++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -30,7 +30,6 @@ gen/ucattab.inc: gen tool/ucattab gen/UnicodeData.txt gen/UnicodeData.txt: gen curl --silent $(UNICODE_DATA_URL) > $@ - @touch $@ # Downloaded file has mod time from when it was created gen: mkdir gen diff --git a/config.mk b/config.mk @@ -1,5 +1,10 @@ -CC = cc +PREFIX = /usr/local +INCPREFIX = $(PREFIX)/include +LIBPREFIX = $(PREFIX)/lib + CFLAGS = -std=c11 -O2 -Wall -pedantic -Iinc + +CC = cc AR = ar UNICODE_DATA_URL = https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt