From ff5012f2c262c72fde831f22fd7ca6dc121d78f9 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Sun, 24 Dec 2023 05:53:29 +1300 Subject: [PATCH] move PREFIX and MANPREFIX into config.mk --- Makefile | 2 -- config.mk | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index eddb224..ef5d274 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -PREFIX = /usr/local - include config.mk OBJS = csto.o callisto.o lcl.o lenviron.o lextra.o lfs.o ljson.o\ diff --git a/config.mk b/config.mk index 978913f..8182aea 100644 --- a/config.mk +++ b/config.mk @@ -1,7 +1,10 @@ +PREFIX = /usr/local +MANPREFIX = ${PREFIX}/man + CC = cc CFLAGS = -std=c99 -pedantic -fpic -O2 -Wall -Wextra -Wno-override-init -Iexternal/luasrc CPPFLAGS = -D_DEFAULT_SOURCE -LDFLAGS = -lm +LDFLAGS = -lm # Enable readline #CPPFLAGS += -DLUA_USE_READLINE