added mesa lib compilation
@@ -5,6 +5,8 @@ ifndef ARCH
ARCH = $(LBITS)
endif
+LIBS=fmt sdl ssl openal ui uv
+
CFLAGS = -Wall -O3 -I src -msse2 -mfpmath=sse -std=c11 -I include/pcre -D LIBHL_EXPORTS
LFLAGS = -L. -lhl
LIBFLAGS =
@@ -84,6 +86,10 @@ ifndef INSTALL_DIR
INSTALL_DIR=/usr/local
endif
+ifdef MESA
+LIBS += mesa
+endif
+
all: libhl hl libs
install:
@@ -100,7 +106,7 @@ uninstall:
rm -f $(INSTALL_DIR)/bin/hl $(INSTALL_DIR)/lib/libhl.${LIBEXT} $(INSTALL_DIR)/lib/*.hdll
rm -f $(INSTALL_DIR)/include/hl.h $(INSTALL_DIR)/include/hlc.h $(INSTALL_DIR)/include/hlc_main.c
-libs: fmt sdl ssl openal ui uv
+libs: $(LIBS)
libhl: ${LIB}
${CC} -o libhl.$(LIBEXT) -m${ARCH} ${LIBFLAGS} -shared ${LIB} -lpthread -lm
@@ -129,6 +135,9 @@ ui: ${UI} libhl
uv: ${UV} libhl
${CC} ${CFLAGS} -shared -o uv.hdll ${UV} ${LIBFLAGS} -L. -lhl -luv
+mesa:
+ (cd libs/mesa && make)
+
release: release_win release_haxelib
release_haxelib:
