aboutsummaryrefslogtreecommitdiff
path: root/scripts/makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-20 03:39:40 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-20 03:39:40 +0300
commit1cc7990ef7d5483d0434dda412f2d88e0b17df27 (patch)
tree93c9945318908c4f593251c0b8f9ecf57c3bde96 /scripts/makefile
parentedf56e3444d5333d4362277ee97a5cdf0c2f52af (diff)
downloadposthaste-1cc7990ef7d5483d0434dda412f2d88e0b17df27.tar.gz
posthaste-1cc7990ef7d5483d0434dda412f2d88e0b17df27.zip
initial working bytecode
Diffstat (limited to 'scripts/makefile')
-rw-r--r--scripts/makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/makefile b/scripts/makefile
index fc1eb58..cf8a07e 100644
--- a/scripts/makefile
+++ b/scripts/makefile
@@ -29,7 +29,7 @@ WARNFLAGS = -Wall -Wextra -Wvla
COMPILE_FLAGS = $(CFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(OBFLAGS) $(ASSERTFLAGS) \
$(DEBUGFLAGS)
-LINK_FLAGS = $(LDFLAGS)
+LINK_FLAGS = $(LDFLAGS) -lm
INCLUDE_FLAGS = -I include
@@ -50,7 +50,7 @@ gen/gen_lexer.inc: src/lexer.l
flex -o gen/gen_lexer.inc src/lexer.l
posthaste: $(POSTHASTE_OBJS)
- $(COMPILE_POSTHASTE) $(POSTHASTE_OBJS) -o $@
+ $(COMPILE_POSTHASTE) $(POSTHASTE_OBJS) -o $@ $(LINK_FLAGS)
# might lint some common things twice
.PHONY: