summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-06-02 11:05:40 -0700
committerPixel <pixel@nobis-crew.org>2009-06-02 11:05:40 -0700
commit001582d7ce9f2a1e6c095a14edaeb32b241f73ef (patch)
tree27e8edd6b49e062d628dda5a7eb1ebc6c5f5ec82 /Makefile
parent1fbd78b5c9eac45c1e751a14ded649cc1cb1d53a (diff)
parentbad0cd00ee93488f9b9182117f74446441b6fb09 (diff)
Merge branch 'master' of ssh+git://pixel@git.grumpycoder.net/pub/repo.git/lua-interface
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index da2bf4c..b6f8a42 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,10 @@ ifeq ($(MACHINE),x86_64)
ifeq ($(DISTRIB),Debian)
#LDFLAGS_READLINE=/usr/lib32/libreadline.a /usr/lib32/libncurses.a
endif
+ifeq ($(DISTRIB),Debian)
+HAVES = -DHAVE_UCL
+BASIC_LDFLAGS = /usr/lib/libucl.a
+endif
endif
SHARED_FLAGS=-shared
SHARED_EXT=so
@@ -47,13 +51,13 @@ INCLUDES = \
-I /usr/include/oracle/11.1.0.1/client/ \
-I ../PSX-Bundle/includes
-HAVES = -DHAVE_VSSCANF -DHAVE_LIBJPEG -DHAVE_FCNTL -DHAVE_MYSQL -DHAVE_UNISTD_H -DHAVE_FORK -DHAVE_PIPE -DHAVE_FSYNC -DHAVE_MALLOC_H -DHAVE_ASPRINTF -DHAVE_BYTESWAP_H
+HAVES += -DHAVE_VSSCANF -DHAVE_LIBJPEG -DHAVE_FCNTL -DHAVE_MYSQL -DHAVE_UNISTD_H -DHAVE_FORK -DHAVE_PIPE -DHAVE_FSYNC -DHAVE_MALLOC_H -DHAVE_ASPRINTF -DHAVE_BYTESWAP_H
LIBS += -lz -ldl -lpthread
CPPFLAGS += $(INCLUDES) -g -DSTDC_HEADERS $(CPPFLAGS_READLINE) -DHOOK_STDS -fexceptions -DWORDS_LITTLEENDIAN -fexceptions $(ARCH_FLAGS) $(HAVES) -DUSE_MPQLIB
-BASIC_LDFLAGS = $(ARCH_FLAGS) $(LIBS)
+BASIC_LDFLAGS += $(ARCH_FLAGS) $(LIBS)
LDFLAGS += $(BASIC_LDFLAGS) $(LDFLAGS_READLINE) -L/usr/lib/oracle/11.1.0.1/client/lib
@@ -223,6 +227,11 @@ ALL_DEPS = $(addsuffix .dep, $(notdir $(basename $(WHOLE_SOURCES) $(DEBUG_SOURCE
all: dep luac lua-interface
+dist: luac lua-interface lua-interface-gl.$(SHARED_EXT)
+ mkdir -p ../lua-interface-dist
+ ln -sf lua-interface-mesa.$(SHARED_EXT) lua-interface.$(SHARED_EXT)
+ cp luac lua-interface lua-interface*.$(SHARED_EXT) ../lua-interface-dist
+
dep: $(ALL_DEPS)
luac: $(LUAC_OBJECTS)
@@ -269,3 +278,5 @@ gl-glue.s:
src/generate-gl-glue.sh > gl-glue.s
-include $(ALL_DEPS)
+
+.PHONY: dist