bldc/repl/Makefile

42 lines
898 B
Makefile
Raw Normal View History

LISPBM := ../
include $(LISPBM)/lispbm.mk
PLATFORM_INCLUDE = -I$(LISPBM)/platform/linux/include
PLATFORM_SRC = $(LISPBM)/platform/linux/src/platform_mutex.c
CCFLAGS = -g -Wall -Wconversion -Wsign-compare -pedantic -std=c11
PICCFLAGS = -O2 -Wall -Wconversion -pedantic -std=c11
LISPBM_SRC += $(LISPBM_EVAL_CPS_SRC)
ifdef HEAP_VIS
CCFLAGS += -DVISUALIZE_HEAP
endif
Squashed 'lispBM/lispBM/' changes from 6199703d..43ebce71 43ebce71 Fix formatting int print.c and constants that default to float/double fa220f0b update gc statistics collection a small bit 25b20686 fix get_heap_state 783d774e Arrays of 64bit values passes the associated tests. More tests are needed though ff40d02f working on 64bit arrays. more testing needed 204bea39 CMP as a macro instead of 8 different functions 44bb152d added a set of math extensions grabbed from Benjamin's bldc repo 9c34b4cd added string extensions from benjamins bldc repo b4370155 merge in changes on master into dev64bit c129344b fixed masking bug in fundamentals ed3ab5be closed down ome warnings when building 64bit d46564c9 expanded functionality of type-of to cover 64bit types and preparations for arrays of 64bit values f7cb5538 added more 64bit functionality to fundamentals and a tiny amount of tests 4dafbe6c added decoders for 64bit values 63026a8a added 64bit value literals 8c1f0f0f made GC aware of lbm_memory allocated values 17148ada 64 bit values allocated on lbm_memory on 32 bit version 4445e5a8 sketch of encoders for 64 bit values f636e64d suffix for the lisp size of int and uint are now i and u instead of i28 and u28 840723ca preparations and planning for 64bit types in both 32 and 64 bit versions. 13675dda 64bit up and running. but there are many TODOs 033bfd9a small fixes following bug hunt f5c984de fix bug in representation of important masks and constants d40b2437 Merge branch 'master' into dev64bit 06f9603f Merge branch 'master' into dev64bit 69950ba1 32 bit tests are ok 46b6fa28 Merge branch 'master' into dev64bit b9e2c993 work in progress 8dff9b4d work in progress a241aded work in progress 4738e0da update year in lbm_types ca469923 made it possible to run the same tests as on the 32 bit version on the 64 bit code 85acec30 small tweaks tp create_ctx, use correct type bf0286a7 Merge branch 'master' into dev64bit 824e1634 Merge branch 'master' into dev64bit 04a97f17 lots of testing needed ea862cce a bunch of changes in preparation for 64bit compatibility. git-subtree-dir: lispBM/lispBM git-subtree-split: 43ebce71a281f4a158b8d2dec3fc537c26766ec3
2022-03-25 07:47:05 -07:00
all: CCFLAGS += -m32
Squashed 'lispBM/lispBM/' changes from ccca9778..db80cb7d db80cb7d updates to how symbols are evaluated, mostly for readability but also efficiency bb573b53 slight optimizations to mark_phase and mark_freelist 58242f41 tweaking the manual 51666fb5 update manual fix prelude situation 2c6349da work on manual 39a15fd8 update a5310055 added a bit more text about symbols in the manual 60d59eec added a bit more text about symbols in the manual f685819e added a bit more text about symbols in the manual 31d56d35 added a bit more text about symbols in the manual 54796c35 added a bit more text about symbols in the manual e333c00f Small readability and efficiency tweaks to eval_cps 0d234b5e lbm_cadr added and sligth modifications to eval_cps.c using lbm_cadr 85cd864a update changelog 6d2c8685 work on manual 5203a64f work on manual 63ebbae2 work on manual 4a146954 work on manual 19a0d06f work on manual 91c1d992 work on manual ab393f46 work on manual 26309199 work on manual c474931b work on manual 1a822e8d work on manual 648f6433 work on manual 6737828a work on manual 2d8e7084 work on manual 3a834fce work on manual 7ae1b342 work on manual bc5b1fd0 work on manual d3b6ec4d work on manual 654d70f8 writing on the manual 0d66dda6 tweak readme d846ea3b update README 2c18d1a6 small tweak bd9f80e5 allowing more characters in symbols 61827fc2 remove the prelude library in its current form. It is still available in the REPL f1dcea8f small tweak benchmarking code 3a761cee update manual e9898b19 make the prelude functions load dynamically when needed by the repl and test-system 714be360 update manual e1804e3e update lbmref, renamings 508d167c Update README.md 6f3207fa Update ch1_introduction.md 6562daef Update ch1_introduction.md 76b48adf work in progress proramming doc 91c44751 fix repl-cps makefile to correctly build deps 54e66b25 remove lbmref.dox f0c90ffd update reference manual 5b577572 fix potential bug in cont_application_start git-subtree-dir: lispBM/lispBM git-subtree-split: db80cb7dd05eef9e71980a55ff7987118c32c6e9
2022-04-12 01:44:49 -07:00
all: repl
Squashed 'lispBM/lispBM/' changes from 6199703d..43ebce71 43ebce71 Fix formatting int print.c and constants that default to float/double fa220f0b update gc statistics collection a small bit 25b20686 fix get_heap_state 783d774e Arrays of 64bit values passes the associated tests. More tests are needed though ff40d02f working on 64bit arrays. more testing needed 204bea39 CMP as a macro instead of 8 different functions 44bb152d added a set of math extensions grabbed from Benjamin's bldc repo 9c34b4cd added string extensions from benjamins bldc repo b4370155 merge in changes on master into dev64bit c129344b fixed masking bug in fundamentals ed3ab5be closed down ome warnings when building 64bit d46564c9 expanded functionality of type-of to cover 64bit types and preparations for arrays of 64bit values f7cb5538 added more 64bit functionality to fundamentals and a tiny amount of tests 4dafbe6c added decoders for 64bit values 63026a8a added 64bit value literals 8c1f0f0f made GC aware of lbm_memory allocated values 17148ada 64 bit values allocated on lbm_memory on 32 bit version 4445e5a8 sketch of encoders for 64 bit values f636e64d suffix for the lisp size of int and uint are now i and u instead of i28 and u28 840723ca preparations and planning for 64bit types in both 32 and 64 bit versions. 13675dda 64bit up and running. but there are many TODOs 033bfd9a small fixes following bug hunt f5c984de fix bug in representation of important masks and constants d40b2437 Merge branch 'master' into dev64bit 06f9603f Merge branch 'master' into dev64bit 69950ba1 32 bit tests are ok 46b6fa28 Merge branch 'master' into dev64bit b9e2c993 work in progress 8dff9b4d work in progress a241aded work in progress 4738e0da update year in lbm_types ca469923 made it possible to run the same tests as on the 32 bit version on the 64 bit code 85acec30 small tweaks tp create_ctx, use correct type bf0286a7 Merge branch 'master' into dev64bit 824e1634 Merge branch 'master' into dev64bit 04a97f17 lots of testing needed ea862cce a bunch of changes in preparation for 64bit compatibility. git-subtree-dir: lispBM/lispBM git-subtree-split: 43ebce71a281f4a158b8d2dec3fc537c26766ec3
2022-03-25 07:47:05 -07:00
all64: CCFLAGS += -DLBM64
Squashed 'lispBM/lispBM/' changes from ccca9778..db80cb7d db80cb7d updates to how symbols are evaluated, mostly for readability but also efficiency bb573b53 slight optimizations to mark_phase and mark_freelist 58242f41 tweaking the manual 51666fb5 update manual fix prelude situation 2c6349da work on manual 39a15fd8 update a5310055 added a bit more text about symbols in the manual 60d59eec added a bit more text about symbols in the manual f685819e added a bit more text about symbols in the manual 31d56d35 added a bit more text about symbols in the manual 54796c35 added a bit more text about symbols in the manual e333c00f Small readability and efficiency tweaks to eval_cps 0d234b5e lbm_cadr added and sligth modifications to eval_cps.c using lbm_cadr 85cd864a update changelog 6d2c8685 work on manual 5203a64f work on manual 63ebbae2 work on manual 4a146954 work on manual 19a0d06f work on manual 91c1d992 work on manual ab393f46 work on manual 26309199 work on manual c474931b work on manual 1a822e8d work on manual 648f6433 work on manual 6737828a work on manual 2d8e7084 work on manual 3a834fce work on manual 7ae1b342 work on manual bc5b1fd0 work on manual d3b6ec4d work on manual 654d70f8 writing on the manual 0d66dda6 tweak readme d846ea3b update README 2c18d1a6 small tweak bd9f80e5 allowing more characters in symbols 61827fc2 remove the prelude library in its current form. It is still available in the REPL f1dcea8f small tweak benchmarking code 3a761cee update manual e9898b19 make the prelude functions load dynamically when needed by the repl and test-system 714be360 update manual e1804e3e update lbmref, renamings 508d167c Update README.md 6f3207fa Update ch1_introduction.md 6562daef Update ch1_introduction.md 76b48adf work in progress proramming doc 91c44751 fix repl-cps makefile to correctly build deps 54e66b25 remove lbmref.dox f0c90ffd update reference manual 5b577572 fix potential bug in cont_application_start git-subtree-dir: lispBM/lispBM git-subtree-split: db80cb7dd05eef9e71980a55ff7987118c32c6e9
2022-04-12 01:44:49 -07:00
all64: repl
Squashed 'lispBM/lispBM/' changes from 6199703d..43ebce71 43ebce71 Fix formatting int print.c and constants that default to float/double fa220f0b update gc statistics collection a small bit 25b20686 fix get_heap_state 783d774e Arrays of 64bit values passes the associated tests. More tests are needed though ff40d02f working on 64bit arrays. more testing needed 204bea39 CMP as a macro instead of 8 different functions 44bb152d added a set of math extensions grabbed from Benjamin's bldc repo 9c34b4cd added string extensions from benjamins bldc repo b4370155 merge in changes on master into dev64bit c129344b fixed masking bug in fundamentals ed3ab5be closed down ome warnings when building 64bit d46564c9 expanded functionality of type-of to cover 64bit types and preparations for arrays of 64bit values f7cb5538 added more 64bit functionality to fundamentals and a tiny amount of tests 4dafbe6c added decoders for 64bit values 63026a8a added 64bit value literals 8c1f0f0f made GC aware of lbm_memory allocated values 17148ada 64 bit values allocated on lbm_memory on 32 bit version 4445e5a8 sketch of encoders for 64 bit values f636e64d suffix for the lisp size of int and uint are now i and u instead of i28 and u28 840723ca preparations and planning for 64bit types in both 32 and 64 bit versions. 13675dda 64bit up and running. but there are many TODOs 033bfd9a small fixes following bug hunt f5c984de fix bug in representation of important masks and constants d40b2437 Merge branch 'master' into dev64bit 06f9603f Merge branch 'master' into dev64bit 69950ba1 32 bit tests are ok 46b6fa28 Merge branch 'master' into dev64bit b9e2c993 work in progress 8dff9b4d work in progress a241aded work in progress 4738e0da update year in lbm_types ca469923 made it possible to run the same tests as on the 32 bit version on the 64 bit code 85acec30 small tweaks tp create_ctx, use correct type bf0286a7 Merge branch 'master' into dev64bit 824e1634 Merge branch 'master' into dev64bit 04a97f17 lots of testing needed ea862cce a bunch of changes in preparation for 64bit compatibility. git-subtree-dir: lispBM/lispBM git-subtree-split: 43ebce71a281f4a158b8d2dec3fc537c26766ec3
2022-03-25 07:47:05 -07:00
install: repl
mkdir -p ~/.local/bin
cp repl ~/.local/bin/lbm
debug: CCFLAGS += -g
debug: repl
Squashed 'lispBM/lispBM/' changes from ccca9778..db80cb7d db80cb7d updates to how symbols are evaluated, mostly for readability but also efficiency bb573b53 slight optimizations to mark_phase and mark_freelist 58242f41 tweaking the manual 51666fb5 update manual fix prelude situation 2c6349da work on manual 39a15fd8 update a5310055 added a bit more text about symbols in the manual 60d59eec added a bit more text about symbols in the manual f685819e added a bit more text about symbols in the manual 31d56d35 added a bit more text about symbols in the manual 54796c35 added a bit more text about symbols in the manual e333c00f Small readability and efficiency tweaks to eval_cps 0d234b5e lbm_cadr added and sligth modifications to eval_cps.c using lbm_cadr 85cd864a update changelog 6d2c8685 work on manual 5203a64f work on manual 63ebbae2 work on manual 4a146954 work on manual 19a0d06f work on manual 91c1d992 work on manual ab393f46 work on manual 26309199 work on manual c474931b work on manual 1a822e8d work on manual 648f6433 work on manual 6737828a work on manual 2d8e7084 work on manual 3a834fce work on manual 7ae1b342 work on manual bc5b1fd0 work on manual d3b6ec4d work on manual 654d70f8 writing on the manual 0d66dda6 tweak readme d846ea3b update README 2c18d1a6 small tweak bd9f80e5 allowing more characters in symbols 61827fc2 remove the prelude library in its current form. It is still available in the REPL f1dcea8f small tweak benchmarking code 3a761cee update manual e9898b19 make the prelude functions load dynamically when needed by the repl and test-system 714be360 update manual e1804e3e update lbmref, renamings 508d167c Update README.md 6f3207fa Update ch1_introduction.md 6562daef Update ch1_introduction.md 76b48adf work in progress proramming doc 91c44751 fix repl-cps makefile to correctly build deps 54e66b25 remove lbmref.dox f0c90ffd update reference manual 5b577572 fix potential bug in cont_application_start git-subtree-dir: lispBM/lispBM git-subtree-split: db80cb7dd05eef9e71980a55ff7987118c32c6e9
2022-04-12 01:44:49 -07:00
repl: repl.c $(LISPBM_SRC) $(LISPBM_DEPS)
gcc $(CCFLAGS) $(LISPBM_SRC) $(PLATFORM_SRC) $(LISPBM_FLAGS) repl.c -o repl $(LISPBM_INC) $(PLATFORM_INCLUDE) -lpthread
Squashed 'lispBM/lispBM/' changes from ccca9778..db80cb7d db80cb7d updates to how symbols are evaluated, mostly for readability but also efficiency bb573b53 slight optimizations to mark_phase and mark_freelist 58242f41 tweaking the manual 51666fb5 update manual fix prelude situation 2c6349da work on manual 39a15fd8 update a5310055 added a bit more text about symbols in the manual 60d59eec added a bit more text about symbols in the manual f685819e added a bit more text about symbols in the manual 31d56d35 added a bit more text about symbols in the manual 54796c35 added a bit more text about symbols in the manual e333c00f Small readability and efficiency tweaks to eval_cps 0d234b5e lbm_cadr added and sligth modifications to eval_cps.c using lbm_cadr 85cd864a update changelog 6d2c8685 work on manual 5203a64f work on manual 63ebbae2 work on manual 4a146954 work on manual 19a0d06f work on manual 91c1d992 work on manual ab393f46 work on manual 26309199 work on manual c474931b work on manual 1a822e8d work on manual 648f6433 work on manual 6737828a work on manual 2d8e7084 work on manual 3a834fce work on manual 7ae1b342 work on manual bc5b1fd0 work on manual d3b6ec4d work on manual 654d70f8 writing on the manual 0d66dda6 tweak readme d846ea3b update README 2c18d1a6 small tweak bd9f80e5 allowing more characters in symbols 61827fc2 remove the prelude library in its current form. It is still available in the REPL f1dcea8f small tweak benchmarking code 3a761cee update manual e9898b19 make the prelude functions load dynamically when needed by the repl and test-system 714be360 update manual e1804e3e update lbmref, renamings 508d167c Update README.md 6f3207fa Update ch1_introduction.md 6562daef Update ch1_introduction.md 76b48adf work in progress proramming doc 91c44751 fix repl-cps makefile to correctly build deps 54e66b25 remove lbmref.dox f0c90ffd update reference manual 5b577572 fix potential bug in cont_application_start git-subtree-dir: lispBM/lispBM git-subtree-split: db80cb7dd05eef9e71980a55ff7987118c32c6e9
2022-04-12 01:44:49 -07:00
pirepl: repl.c $(LISPBM_SRC) $(LISPBM_DEPS)
gcc $(PICCFLAGS) $(LISPBM_SRC) $(PLATFORM_SRC) $(LISPBM_FLAGS) repl.c -o repl $(LISPBM_INC) $(PLATFORM_INCLUDE) -lpthread
clean:
rm repl