Skip to content

Commit af19f82

Browse files
committed
Modify Makefile for FreeType and GLAD
1 parent 9d354ca commit af19f82

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

config.mk

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ CC := gcc
2020
# LIBRARIES
2121
STB_CFLAGS:=-I$(DEPS_DIR)/src/stb
2222
OPENSSL_LDFLAGS := -lssl -lcrypto
23-
GLEW_LDFLAGS := -lGLEW
24-
SDL2_CFLAGS:=$(shell sdl2-config --cflags)
25-
SDL2_LDFLAGS := $(shell sdl2-config --libs) -lSDL2_image
26-
OPENGL_LDFLAGS := $(SDL2_LDFLAGS) $(GLEW_LDFLAGS) -lGL
23+
GLAD_LDFLAGS := -lglad
24+
OPENGL_LDFLAGS := $(GLAD_LDFLAGS) -lGL
25+
FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2)
26+
FREETYPE_LDFLAGS := $(shell pkg-config --libs freetype2)
2727
BLAS_LDFLAGS := -lblas -llapack -llapacke
2828
SUITESPARSE_LDFLAGS := -llapack -lcamd -lamd -lccolamd -lcolamd -lcholmod -lcxsparse
2929
CERES_CFLAGS := -I/usr/include/eigen3
@@ -55,8 +55,8 @@ CFLAGS += \
5555
-I$(INC_DIR) \
5656
-I$(DEPS_DIR)/include \
5757
-fPIC \
58-
$(SDL2_CFLAGS) \
5958
$(STB_CFLAGS) \
59+
$(FREETYPE_CFLAGS) \
6060
$(CERES_CFLAGS)
6161

6262

@@ -73,6 +73,7 @@ LDFLAGS= \
7373
$(OPENSSL_LDFLAGS) \
7474
$(ASSIMP_LDFLAGS) \
7575
$(YAML_LDFLAGS) \
76+
$(FREETYPE_LDFLAGS) \
7677
-lglfw3 \
7778
-lstdc++ \
7879
-lpthread \

0 commit comments

Comments
 (0)