Skip to content

Instantly share code, notes, and snippets.

@8Observer8
Created March 13, 2022 19:03
Show Gist options
  • Save 8Observer8/8feb8968b56a0bcf626b0d619ce7ada9 to your computer and use it in GitHub Desktop.
Save 8Observer8/8feb8968b56a0bcf626b0d619ce7ada9 to your computer and use it in GitHub Desktop.
MinGW makefile for SDL2 and Box2D
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