Fix: not linking of math lib
This commit is contained in:
11
Makefile
11
Makefile
@@ -48,11 +48,11 @@ glfw.dll:
|
|||||||
# LINUX
|
# LINUX
|
||||||
linux-x11: $(OBJ)
|
linux-x11: $(OBJ)
|
||||||
$(MAKE) BKN=_GLFW_X11 libglfw.so
|
$(MAKE) BKN=_GLFW_X11 libglfw.so
|
||||||
$(CC) -o $(BIN) $(OBJ) -L. -lGLEW -lGL -lglfw
|
$(CC) -o $(BIN) $(OBJ) -L. -lGLEW -lGL -lglfw -lm
|
||||||
|
|
||||||
linux-wayland: $(OBJ)
|
linux-wayland: $(OBJ)
|
||||||
$(MAKE) BKN=_GLFW_WAYLAND libglfw.so
|
$(MAKE) BKN=_GLFW_WAYLAND libglfw.so
|
||||||
$(CC) -o $(BIN) $(OBJ) -L. -lGLEW -lGL -lglfw
|
$(CC) -o $(BIN) $(OBJ) -L. -lGLEW -lGL -lglfw -lm
|
||||||
|
|
||||||
run-linux:
|
run-linux:
|
||||||
LD_LIBRARY_PATH=. ./$(BIN)
|
LD_LIBRARY_PATH=. ./$(BIN)
|
||||||
@@ -66,13 +66,14 @@ libglfw.so: wayland.h
|
|||||||
$(CC) -fPIC -shared -D$(BKN) -D_GLFW_BUILD_DLL -Iext/glfw/deps/wayland ./ext/glfw/src/*.c -o $@
|
$(CC) -fPIC -shared -D$(BKN) -D_GLFW_BUILD_DLL -Iext/glfw/deps/wayland ./ext/glfw/src/*.c -o $@
|
||||||
|
|
||||||
wayland.h:
|
wayland.h:
|
||||||
for i in $(WAYLAND-LIB); do \
|
for i in $(WAYLAND-LIB); \
|
||||||
|
do \
|
||||||
wayland-scanner client-header ext/glfw/deps/wayland/$$i.xml ext/glfw/deps/wayland/$$i-client-protocol.h; \
|
wayland-scanner client-header ext/glfw/deps/wayland/$$i.xml ext/glfw/deps/wayland/$$i-client-protocol.h; \
|
||||||
wayland-scanner private-code ext/glfw/deps/wayland/$$i.xml ext/glfw/deps/wayland/$$i-client-protocol-code.h; \
|
wayland-scanner private-code ext/glfw/deps/wayland/$$i.xml ext/glfw/deps/wayland/$$i-client-protocol-code.h; \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(OBJ) $(BIN)
|
rm $(OBJ) $(BIN) ext/glfw/deps/wayland/*.h
|
||||||
|
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user