aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2017-06-23 13:49:01 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2017-06-23 13:49:01 -0300
commitaad9b29e755d67d6cb4e4b861111df0d173819ce (patch)
tree1d7e788891b978f0b55f7a13a02560c3b4b53d7b
parentf33d1dab5cc39b3bb7ae90da678c9a709c47e0d2 (diff)
downloadlpeglabel-aad9b29e755d67d6cb4e4b861111df0d173819ce.tar.gz
lpeglabel-aad9b29e755d67d6cb4e4b861111df0d173819ce.tar.bz2
lpeglabel-aad9b29e755d67d6cb4e4b861111df0d173819ce.zip
Build lpeglabel for a Linux system by default
-rw-r--r--makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/makefile b/makefile
index 06c5d2b..5d74b96 100644
--- a/makefile
+++ b/makefile
@@ -26,9 +26,6 @@ CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC
26CC = gcc 26CC = gcc
27 27
28FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o 28FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o
29# For Windows
30windows:
31 make lpeglabel.dll "DLLFLAGS = -shared -fPIC"
32# For Linux 29# For Linux
33linux: 30linux:
34 make lpeglabel.so "DLLFLAGS = -shared -fPIC" 31 make lpeglabel.so "DLLFLAGS = -shared -fPIC"
@@ -37,6 +34,10 @@ linux:
37macosx: 34macosx:
38 make lpeglabel.so "DLLFLAGS = -bundle -undefined dynamic_lookup" 35 make lpeglabel.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
39 36
37# For Windows
38windows:
39 make lpeglabel.dll "DLLFLAGS = -shared -fPIC"
40
40lpeglabel.so: $(FILES) 41lpeglabel.so: $(FILES)
41 env $(CC) $(DLLFLAGS) $(FILES) -o lpeglabel.so 42 env $(CC) $(DLLFLAGS) $(FILES) -o lpeglabel.so
42lpeglabel.dll: $(FILES) 43lpeglabel.dll: $(FILES)