Created
March 13, 2022 19:03
-
-
Save 8Observer8/8feb8968b56a0bcf626b0d619ce7ada9 to your computer and use it in GitHub Desktop.
MinGW makefile for SDL2 and Box2D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = g++ | |
INC = -I"E:\Libs\SDL2-2.0.12-mingw-32bit\include" -I"E:\Libs\box2d-2.4.0-mingw-32bit\include" | |
LIB = -L"E:\Libs\SDL2-2.0.12-mingw-32bit\lib" -L"E:\Libs\box2d-2.4.0-mingw-32bit\lib" | |
FLAGS = -c | |
all: main.o | |
$(CC) main.o $(LIB) -lSDL2.dll -lbox2d -o app | |
main.o: main.cpp | |
$(CC) $(FLAGS) $(INC) main.cpp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment