From 0821f07f8ac6ae837ab7d5ea508b255fc6750844 Mon Sep 17 00:00:00 2001 From: vsbenas Date: Tue, 28 Mar 2017 22:16:47 +0100 Subject: Update makefile to support Windows OS Currently impossible to build on windows --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 5728b38..06c5d2b 100644 --- a/makefile +++ b/makefile @@ -26,7 +26,9 @@ 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 +39,8 @@ macosx: lpeglabel.so: $(FILES) env $(CC) $(DLLFLAGS) $(FILES) -o lpeglabel.so +lpeglabel.dll: $(FILES) + $(CC) $(DLLFLAGS) $(FILES) -o lpeglabel.dll $(LUADIR)/bin/lua53.dll $(FILES): makefile -- cgit v1.2.3-55-g6feb