blob: 3deca37eaee7745deaf68d1a4065036dba44dada (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff --git a/makefile b/makefile
index fb1bed4..a0c0084 100644
--- a/makefile
+++ b/makefile
@@ -1,11 +1,11 @@
-CFLAGS = -Wall -std=c99
-LFLAGS = -lm
+CFLAGS ?= -Wall -std=c99
+LFLAGS ?= -lm
CC = gcc
all: overlay
overlay: main.o logic.o sh.o
- $(CC) $(LFLAGS) main.o logic.o sh.o -o overlay
+ $(CC) $(LFLAGS) $(LDFLAGS) main.o logic.o sh.o -o overlay
main.o: main.c logic.h
$(CC) $(CFLAGS) -c main.c
|