diff options
author | Sergio Queiroz <sqmedeiros@gmail.com> | 2017-06-23 13:49:01 -0300 |
---|---|---|
committer | Sergio Queiroz <sqmedeiros@gmail.com> | 2017-06-23 13:49:01 -0300 |
commit | aad9b29e755d67d6cb4e4b861111df0d173819ce (patch) | |
tree | 1d7e788891b978f0b55f7a13a02560c3b4b53d7b | |
parent | f33d1dab5cc39b3bb7ae90da678c9a709c47e0d2 (diff) | |
download | lpeglabel-aad9b29e755d67d6cb4e4b861111df0d173819ce.tar.gz lpeglabel-aad9b29e755d67d6cb4e4b861111df0d173819ce.tar.bz2 lpeglabel-aad9b29e755d67d6cb4e4b861111df0d173819ce.zip |
Build lpeglabel for a Linux system by default
-rw-r--r-- | makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -26,9 +26,6 @@ CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC | |||
26 | CC = gcc | 26 | CC = gcc |
27 | 27 | ||
28 | FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o | 28 | FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o |
29 | # For Windows | ||
30 | windows: | ||
31 | make lpeglabel.dll "DLLFLAGS = -shared -fPIC" | ||
32 | # For Linux | 29 | # For Linux |
33 | linux: | 30 | linux: |
34 | make lpeglabel.so "DLLFLAGS = -shared -fPIC" | 31 | make lpeglabel.so "DLLFLAGS = -shared -fPIC" |
@@ -37,6 +34,10 @@ linux: | |||
37 | macosx: | 34 | macosx: |
38 | make lpeglabel.so "DLLFLAGS = -bundle -undefined dynamic_lookup" | 35 | make lpeglabel.so "DLLFLAGS = -bundle -undefined dynamic_lookup" |
39 | 36 | ||
37 | # For Windows | ||
38 | windows: | ||
39 | make lpeglabel.dll "DLLFLAGS = -shared -fPIC" | ||
40 | |||
40 | lpeglabel.so: $(FILES) | 41 | lpeglabel.so: $(FILES) |
41 | env $(CC) $(DLLFLAGS) $(FILES) -o lpeglabel.so | 42 | env $(CC) $(DLLFLAGS) $(FILES) -o lpeglabel.so |
42 | lpeglabel.dll: $(FILES) | 43 | lpeglabel.dll: $(FILES) |