Skip to content

Commit

Permalink
build system rollback due to cgo/goinstall incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
afitz committed Jul 24, 2010
1 parent f1d57d9 commit 98cb148
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 36 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@

all: lua5.1/_obj/lua5.1.a examples
LUA51_DIR=lua51

lua5.1/_obj/lua5.1.a:
cd lua5.1 && make
all: $(LUA51_DIR)/_obj/lua51.a examples

$(LUA51_DIR)/_obj/lua51.a:
cd $(LUA51_DIR) && make

examples: install
cd example && make

clean:
cd example && make clean
cd lua5.1 && make clean
cd $(LUA51_DIR) && make clean

install:
cd lua5.1 && make install
cd $(LUA51_DIR) && make install

2 changes: 1 addition & 1 deletion example/basic.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import lua51 "github.com/afitz/golua/lua5.1"
import "lua51"
import "fmt"

func test(L *lua51.State) int {
Expand Down
2 changes: 1 addition & 1 deletion example/panic.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import lua "github.com/afitz/golua/lua5.1"
import lua "lua51"
import "fmt"

func test(L *lua.State) int {
Expand Down
26 changes: 0 additions & 26 deletions lua5.1/Makefile

This file was deleted.

8 changes: 5 additions & 3 deletions lua5.1/Make.lua → lua51/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

include $(GOROOT)/src/Make.$(GOARCH)

ifndef TARG
TARG=github.com/afitz/golua/lua5.1
endif
#ifndef TARG
#TARG=github.com/afitz/golua/lua5.1
#endif

TARG=lua51

CGO_CFLAGS=-I/usr/include/lua5.1
CGO_LDFLAGS=_cgo_export.o -L/usr/lib/lua5.1 -L./ -llua5.1 -lgolua
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 98cb148

Please sign in to comment.