This repository has been archived on 2024-07-29. You can view files and clone it, but cannot push or open issues or pull requests.
2024-06-21 00:22:44 -04:00
|
|
|
.PHONY: run
|
2024-06-19 23:27:14 -04:00
|
|
|
UNIVERSAL_SERVICE_DIR=universalservice
|
|
|
|
CFLAGS=-I${UNIVERSAL_SERVICE_DIR}/include -g -I${UNIVERSAL_SERVICE_DIR}/examples/string -std=c89 -Wall -pedantic -Werror
|
|
|
|
LDFLAGS=-L${UNIVERSAL_SERVICE_DIR} -luniversalservice -L${UNIVERSAL_SERVICE_DIR}/examples/string -lunsstring
|
|
|
|
|
|
|
|
flatrate: main.c
|
|
|
|
$(CC) main.c -o flatrate $(CFLAGS) $(LDFLAGS)
|
2024-06-21 00:22:44 -04:00
|
|
|
run: flatrate
|
|
|
|
LD_LIBRARY_PATH="$$(pwd)/${UNIVERSAL_SERVICE_DIR}/:$$(pwd)/${UNIVERSAL_SERVICE_DIR}/examples/string" ./flatrate < prelude.scm
|
|
|
|
debug: flatrate
|
|
|
|
LD_LIBRARY_PATH="$$(pwd)/${UNIVERSAL_SERVICE_DIR}/:$$(pwd)/${UNIVERSAL_SERVICE_DIR}/examples/string" gdb -tui ./flatrate
|
|
|
|
valgrind: flatrate
|
|
|
|
LD_LIBRARY_PATH="$$(pwd)/${UNIVERSAL_SERVICE_DIR}/:$$(pwd)/${UNIVERSAL_SERVICE_DIR}/examples/string" valgrind ./flatrate < prelude.scm
|