diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ | |||
1 | LIBNAME = lpeglabel | 1 | LIBNAME = lpeglabelrec |
2 | LUADIR = ../lua/ | 2 | LUADIR = ../lua/ |
3 | 3 | ||
4 | COPT = -O2 | 4 | COPT = -O2 |
@@ -29,24 +29,24 @@ FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o | |||
29 | 29 | ||
30 | # For Linux | 30 | # For Linux |
31 | linux: | 31 | linux: |
32 | make lpeglabel.so "DLLFLAGS = -shared -fPIC" | 32 | make lpeglabelrec.so "DLLFLAGS = -shared -fPIC" |
33 | 33 | ||
34 | # For Mac OS | 34 | # For Mac OS |
35 | macosx: | 35 | macosx: |
36 | make lpeglabel.so "DLLFLAGS = -bundle -undefined dynamic_lookup" | 36 | make lpeglabelrec.so "DLLFLAGS = -bundle -undefined dynamic_lookup" |
37 | 37 | ||
38 | lpeglabel.so: $(FILES) | 38 | lpeglabelrec.so: $(FILES) |
39 | env $(CC) $(DLLFLAGS) $(FILES) -o lpeglabel.so | 39 | env $(CC) $(DLLFLAGS) $(FILES) -o lpeglabelrec.so |
40 | 40 | ||
41 | $(FILES): makefile | 41 | $(FILES): makefile |
42 | 42 | ||
43 | test: test.lua testlabel.lua testerrors.lua relabel.lua lpeglabel.so | 43 | test: test.lua testlabel.lua testerrors.lua relabel.lua lpeglabelrec.so |
44 | lua test.lua | 44 | lua test.lua |
45 | lua testlabel.lua | 45 | lua testlabel.lua |
46 | lua testerrors.lua | 46 | lua testerrors.lua |
47 | 47 | ||
48 | clean: | 48 | clean: |
49 | rm -f $(FILES) lpeglabel.so | 49 | rm -f $(FILES) lpeglabelrec.so |
50 | 50 | ||
51 | 51 | ||
52 | lpcap.o: lpcap.c lpcap.h lptypes.h | 52 | lpcap.o: lpcap.c lpcap.h lptypes.h |