Explorar o código

added mesa lib compilation

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
88068c114a
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      Makefile

+ 10 - 1
Makefile

@@ -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
@@ -128,6 +134,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