Sha256: 0af1d464831c7bfcf07188c1305867108acea6e4e6f3068b078988b43f1c0349
Contents?: true
Size: 1.1 KB
Versions: 38
Compression:
Stored size: 1.1 KB
Contents
LIBNAME = lpeg LUADIR = ../lua/ COPT = -O2 # COPT = -DLPEG_DEBUG -g CWARNS = -Wall -Wextra -pedantic \ -Waggregate-return \ -Wcast-align \ -Wcast-qual \ -Wdisabled-optimization \ -Wpointer-arith \ -Wshadow \ -Wsign-compare \ -Wundef \ -Wwrite-strings \ -Wbad-function-cast \ -Wdeclaration-after-statement \ -Wmissing-prototypes \ -Wnested-externs \ -Wstrict-prototypes \ # -Wunreachable-code \ CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC CC = gcc FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o # For Linux linux: make lpeg.so "DLLFLAGS = -shared -fPIC" # For Mac OS macosx: make lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup" lpeg.so: $(FILES) env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so $(FILES): makefile test: test.lua re.lua lpeg.so ./test.lua clean: rm -f $(FILES) lpeg.so lpcap.o: lpcap.c lpcap.h lptypes.h lpcode.o: lpcode.c lptypes.h lpcode.h lptree.h lpvm.h lpcap.h lpprint.o: lpprint.c lptypes.h lpprint.h lptree.h lpvm.h lpcap.h lptree.o: lptree.c lptypes.h lpcap.h lpcode.h lptree.h lpvm.h lpprint.h lpvm.o: lpvm.c lpcap.h lptypes.h lpvm.h lpprint.h lptree.h
Version data entries
38 entries across 38 versions & 1 rubygems