Skip to content

Fixing the makefile to build on ubuntu 64 bit #1

@fps

Description

@fps

diff --git a/Makefile b/Makefile
index 05952a2..2c51bc9 100644
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,14 @@ VERSION := 0.02
DISTDIR := lua-subprocess-$(VERSION)
DISTFILES := Makefile $(SOURCES) liolib-copy.h subprocess.txt subprocess.html

-INSTALL_CMOD := $(shell pkg-config --variable=INSTALL_CMOD lua)
+INSTALL_CMOD := $(shell pkg-config --variable=INSTALL_CMOD lua5.1)

ifeq ($(INSTALL_CMOD),)
$(error Lua package not found)
endif

CFLAGS ?= -Wall -Wextra -pedantic -O2
-LUA_CFLAGS := $(shell pkg-config --cflags --libs lua)
+LUA_CFLAGS := $(shell pkg-config --cflags --libs lua5.1)

.PHONY: all
all: subprocess.so subprocess.html
@@ -31,6 +31,7 @@ clean:

.PHONY: install
install: subprocess.so

  •   $(INSTALL) -d -m755 $(INSTALL_CMOD)/
    $(INSTALL) -m755 subprocess.so $(INSTALL_CMOD)/
    

    .PHONY: uninstall

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions