tiny scheme compiler that aims to be fast and correct
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

39 lines
1.9 KiB

default: tokenize.c RTS.c tokenize.h RTS.h
$(MAKE) lib;
$(CC) -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 -O3 ./tokenize.c -lmaa -o tokenize_test;
$(CC) -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 -O3 ./RTS.c -o RTS.o;
$(CC) -DLIB -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 -O3 ./reader.c -lmaa -o reader_test -L. -ltokenize -lrts -Wl,-rpath,/home/wes/schream;
unsafe: tokenize.c RTS.c tokenize.h RTS.h
$(CC) -DNDEBUG -std=c99 -O3 ./tokenize.c -lmaa;
$(CC) -DNDEBUG -std=c99 -O3 ./RTS.c;
unsafelib: tokenize.c RTS.c tokenize.h RTS.h
$(CC) -DLIB -DNDEBUG -c -fpic -std=c99 -O3 ./tokenize.c;
$(CC) -shared -o tokenize.so tokenize.o -lmaa;
$(CC) -DLIB -DNDEBUG -c -fpic -std=c99 -O3 ./RTS.c;
$(CC) -shared -o RTS.so RTS.o;
lib: tokenize.c RTS.c tokenize.h RTS.h
$(CC) -DLIB -DNDEBUG -c -fpic -Wall -Wextra -pedantic -Wpointer-arith -Werror -std=c99 -O3 ./tokenize.c
$(CC) -shared -o libtokenize.so tokenize.o -lmaa;
$(CC) -DLIB -DNDEBUG -c -fpic -Wall -Wextra -pedantic -Wpointer-arith -Werror -std=c99 -O3 ./RTS.c
$(CC) -shared -o librts.so RTS.o -lmaa;
$(CC) -DLIB -DNDEBUG -c -fpic -Wall -Wextra -pedantic -Wpointer-arith -Werror -std=c99 -O3 ./RTS.c;
$(CC) -shared -o RTS.so RTS.o;
debug: tokenize.c RTS.c tokenize.h RTS.h
$(CC) -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 ./tokenize.c -lmaa -o tokenize_debug;
$(CC) -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 ./RTS.c;
debuglib: tokenize.c RTS.c tokenize.h RTS.h
$(CC) -g -c -fpic -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 ./tokenize.c;
$(CC) -shared -o tokenize.so tokenize.o -lmaa;
$(CC) -g -c -fpic -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 ./RTS.c;
$(CC) -shared -o RTS.so RTS.o;