Skip to content

Commit

Permalink
fix: missing win32 makefile for font atlas demo
Browse files Browse the repository at this point in the history
  • Loading branch information
capnramses committed Mar 21, 2024
1 parent b40daae commit b50f47e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 27_font_atlas/Makefile.win64
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CC = g++
FLAGS = -Wall -pedantic
STA_LIB = ../third_party/glfw-3.4.bin.WIN64/lib-mingw-w64/libglfw3dll.a ../third_party/glew-2.1.0/lib/Release/x64/glew32.lib
DYN_LIB = -lOpenGL32 -L ./ -lglew32 -lglfw3 -lm
INC = -I ../third_party/glfw-3.4.bin.WIN64/include/ -I ../third_party/glew-2.1.0/include/ -I ../third_party/freetype/include/

all: copy_lib generator viewer

copy_lib:
copy ..\third_party\glew-2.1.0\bin\Release\x64\glew32.dll .\ ^
copy ..\third_party\glfw-3.4.bin.WIN64\lib-mingw-w64\glfw3.dll .\

generator:
$(CC) $(FLAGS) -o generate generator_main.cpp $(INC) ../third_party/freetype/lib/freetype.a

viewer:
$(CC) $(FLAGS) -o view viewer_main.cpp maths_funcs.cpp $(INC) $(STA_LIB) $(DYN_LIB)

clean:
del /q $(BIN).* *.dll

0 comments on commit b50f47e

Please sign in to comment.