Ticket #38562: patch-makefile.diff

File patch-makefile.diff, 669 bytes (added by andremm@…, 12 years ago)
  • makefile

    old new  
    11LIBNAME = lpeg
    2 LUADIR = /usr/include/lua5.1/
     2LUADIR = @@PREFIX@@/include
    33
    44COPT = -O2
    55# COPT = -DLPEG_DEBUG -g
     
    2323
    2424
    2525CFLAGS = $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC
    26 CC = gcc
     26CC = @@COMPILER@@
    2727
    2828# For Linux
    29 DLLFLAGS = -shared -fPIC
    30 ENV =
     29# DLLFLAGS = -shared -fPIC
     30# ENV =
    3131
    3232# For Mac OS
    33 # ENV = MACOSX_DEPLOYMENT_TARGET=10.4
    34 # DLLFLAGS = -bundle -undefined dynamic_lookup
     33ENV = MACOSX_DEPLOYMENT_TARGET=10.4
     34DLLFLAGS = -bundle -undefined dynamic_lookup
    3535
    3636
    3737FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o