2020-10-29 09:11:34 -04:00
|
|
|
files = pebblisp.c tokens.c object.c env.c
|
2020-11-07 00:05:52 -05:00
|
|
|
exe = pl
|
|
|
|
|
2021-07-05 00:26:18 -04:00
|
|
|
BINPREFIX ?= /usr/bin
|
2020-11-07 00:05:52 -05:00
|
|
|
SCRIPTDIR ?= /usr/local/share/pebblisp
|
|
|
|
|
|
|
|
GCC_COM ?= gcc -g -O0 -Wall -o $(exe) -D STANDALONE -DSCRIPTDIR=\"$(SCRIPTDIR)\"
|
2020-05-15 16:27:45 -04:00
|
|
|
|
2020-05-06 00:47:14 -04:00
|
|
|
all:
|
2021-07-05 00:18:14 -04:00
|
|
|
$(GCC_COM) $(files) && echo; ./tests.sh
|
2020-05-15 16:27:45 -04:00
|
|
|
|
|
|
|
notest:
|
2020-11-07 00:05:52 -05:00
|
|
|
$(GCC_COM) $(files)
|
2020-05-06 00:47:14 -04:00
|
|
|
|
2020-05-14 23:50:53 -04:00
|
|
|
val:
|
2020-11-07 00:05:52 -05:00
|
|
|
$(GCC_COM) $(files) && ./tests.sh -val
|
2020-05-14 23:50:53 -04:00
|
|
|
|
2020-05-06 00:47:14 -04:00
|
|
|
debug:
|
2020-11-07 00:05:52 -05:00
|
|
|
$(GCC_COM) -D DEBUG $(files)
|
2020-05-07 20:32:01 -04:00
|
|
|
|
2020-05-08 02:29:06 -04:00
|
|
|
run:
|
2020-05-19 20:37:15 -04:00
|
|
|
./$(exe)
|
2020-10-29 09:04:32 -04:00
|
|
|
|
|
|
|
install:
|
2020-11-07 00:05:52 -05:00
|
|
|
cp -pf ./$(exe) $(BINPREFIX)
|
|
|
|
mkdir -p $(SCRIPTDIR)
|
|
|
|
cp ./examples/* $(SCRIPTDIR)
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm $(BINPREFIX)/$(exe)
|
|
|
|
rm -r $(SCRIPTDIR)
|