We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d581ce5 commit 811719bCopy full SHA for 811719b
Makefile
@@ -1,15 +1,16 @@
1
FLAGS=-Iinclude/
2
+LINK=-L.
3
4
all: moon.exe moonc.exe moonscript.dll
5
6
moon.exe: moon.c lfs.o lpeg.o moonscript.h moon.h alt_getopt.h
- gcc $(FLAGS) -o $@ $< lfs.o lpeg.o -llua51 -O2
7
+ gcc $(LINK) $(FLAGS) -o $@ $< lfs.o lpeg.o -llua51 -O2
8
9
moonc.exe: moonc.c lfs.o lpeg.o moonscript.h moonc.h alt_getopt.h
10
11
12
moonscript.dll: lpeg.o moonscript.o
- gcc $(FLAGS) -o $@ $+ -llua51 -O2 -shared -fpic
13
+ gcc $(LINK) $(FLAGS) -o $@ $+ -llua51 -O2 -shared -fpic
14
15
moon.o: moon.c moonscript.h moon.h alt_getopt.h
16
gcc $(FLAGS) -c $< -o $@ -fpic -O2
0 commit comments