summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ebs.c2
-rw-r--r--makefile4
2 files changed, 4 insertions, 2 deletions
diff --git a/ebs.c b/ebs.c
index 975136d..f2d1c93 100644
--- a/ebs.c
+++ b/ebs.c
@@ -114,9 +114,11 @@ static void izhod_poln (struct ebs * e) {
void ebs_init (struct ebs * e) {
memset(e, '\0', sizeof *e);
+#ifndef NO_HOOKS
e->peek = peek;
e->poke = poke;
e->inštrukcija = inštrukcija;
+#endif
e->vhod_medp_indeks = 8;
e->izhod_medp_indeks = 0;
e->vhod_prazen = vhod_prazen;
diff --git a/makefile b/makefile
index 5b5889b..b183ada 100644
--- a/makefile
+++ b/makefile
@@ -1,6 +1,6 @@
DESTDIR=/
CC=cc
-MYCFLAGS=-Ofast -march=native -Wall -Wextra -Wformat -pedantic -g -I. # -fsanitize=address
+MYCFLAGS=-O3 -DNO_HOOKS -march=native -Wall -Wextra -Wformat -pedantic -g -I. # -fsanitize=address
MYLDFLAGS=-lpthread
default: ebs disass
@@ -8,7 +8,7 @@ default: ebs disass
ebs: main.c ebs.c
$(CC) $(MYCFLAGS) $(CFLAGS) main.c -o$@ $(MYLDFLAGS) $(LDFLAGS)
-disass: disass
+disass: disass.c
$(CC) $(MYCFLAGS) $(CFLAGS) disass.c -o$@ $(MYLDFLAGS) $(LDFLAGS)
install: