Remove hard dependency on readline, split makefile config into config.mk
This commit is contained in:
parent
a72a34370c
commit
8b4a0f86cf
3 changed files with 9 additions and 5 deletions
5
Makefile
5
Makefile
|
@ -1,9 +1,6 @@
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
CC = cc
|
include config.mk
|
||||||
CFLAGS = -std=c99 -pedantic -fpic -O2 -Wall -Wextra -Wno-override-init -I. -Ilua-5.4
|
|
||||||
CPPFLAGS = -D_DEFAULT_SOURCE -DLUA_USE_READLINE
|
|
||||||
LDFLAGS = -lm -lreadline
|
|
||||||
|
|
||||||
OBJS = csto.o lcallisto.o lcl.o lenviron.o lextra.o lfile.o \
|
OBJS = csto.o lcallisto.o lcl.o lenviron.o lextra.o lfile.o \
|
||||||
ljson.o lprocess.o lsocket.o util.o
|
ljson.o lprocess.o lsocket.o util.o
|
||||||
|
|
8
config.mk
Normal file
8
config.mk
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
CC = cc
|
||||||
|
CFLAGS = -std=c99 -pedantic -fpic -O2 -Wall -Wextra -Wno-override-init -I. -Ilua-5.4
|
||||||
|
CPPFLAGS = -D_DEFAULT_SOURCE
|
||||||
|
LDFLAGS = -lm
|
||||||
|
|
||||||
|
# Enable readline
|
||||||
|
#CPPFLAGS += -DLUA_USE_READLINE
|
||||||
|
#LDFLAGS += -lreadline
|
|
@ -3,7 +3,6 @@ pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs.buildPackages; [
|
nativeBuildInputs = with pkgs.buildPackages; [
|
||||||
bmake
|
bmake
|
||||||
clang
|
clang
|
||||||
readline
|
|
||||||
];
|
];
|
||||||
shellHook = "alias make=bmake";
|
shellHook = "alias make=bmake";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue