diff --git a/makefile b/makefile index 9962e86..987d69f 100644 --- a/makefile +++ b/makefile @@ -1,10 +1,10 @@ all: libvm vm libvm: wrapper.c vm_instructions.c vm_decode.c vm.h tty.c - gcc -ggdb -shared -Wl,-soname,libvm.so -o libvm.so -fPIC wrapper.c vm_instructions.c vm_decode.c vm.h tty.c + gcc -ggdb -Dtty_lib=true -shared -Wl,-soname,libvm.so -o libvm.so -fPIC wrapper.c vm_instructions.c vm_decode.c vm.h tty.c vm: vm.h vm.c vm_instructions.c vm_decode.c tty.c - gcc -ggdb vm.h vm.c vm_instructions.c vm_decode.c tty.c -o bin/vm + gcc -ggdb -Dtty_lib=true vm.h vm.c vm_instructions.c vm_decode.c tty.c -o bin/vm production: libvm-production vm-production diff --git a/tty.c b/tty.c index f65b666..c020d42 100644 --- a/tty.c +++ b/tty.c @@ -8,8 +8,6 @@ * wish to use. Please note that they contain bugs * ****************************************************/ -#define tty_lib true - /* In order to restore at exit.*/ static struct termios orig_termios;