summaryrefslogtreecommitdiff
blob: d0ea10af002a53b4a124ce9ae8ee986d62edee1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/Makefile b/Makefile
index d84a02b..e1cb36b 100644
--- a/Makefile
+++ b/Makefile
@@ -39,10 +39,10 @@ CFLAGS=-Wall -O2 -pipe -fomit-frame-pointer -march=core2 -mcx16 -msahf -maes -mp
 	sleep 10
 
 tomoyotools: tomoyotools.src/*.c tomoyotools.src/*.h /usr/include/curses.h
-	$(CC) $(CFLAGS) -o tomoyotools tomoyotools.src/*.c -lncurses -DCOLOR_ON
+	$(CC) $(CFLAGS) $(LDFLAGS) -o tomoyotools tomoyotools.src/*.c -lncurses -DCOLOR_ON
 
 .c:
-	$(CC) $(CFLAGS) -o $@ $<
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
 
 clean:
 	rm -f $(MAIN_FILES) $(MISC_FILES)