From aad9b29e755d67d6cb4e4b861111df0d173819ce Mon Sep 17 00:00:00 2001 From: Sergio Queiroz Date: Fri, 23 Jun 2017 13:49:01 -0300 Subject: Build lpeglabel for a Linux system by default --- makefile | 7 ++++--- 1 file 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 CC = gcc FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o -# For Windows -windows: - make lpeglabel.dll "DLLFLAGS = -shared -fPIC" # For Linux linux: make lpeglabel.so "DLLFLAGS = -shared -fPIC" @@ -37,6 +34,10 @@ linux: macosx: make lpeglabel.so "DLLFLAGS = -bundle -undefined dynamic_lookup" +# For Windows +windows: + make lpeglabel.dll "DLLFLAGS = -shared -fPIC" + lpeglabel.so: $(FILES) env $(CC) $(DLLFLAGS) $(FILES) -o lpeglabel.so lpeglabel.dll: $(FILES) -- cgit v1.2.3-55-g6feb