summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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