Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat Makefile
- #OBJS specifies which files to compile as part of the project
- OBJS = 02_getting_an_image_on_the_screen.cpp
- #OBJ_NAME specifies the name of our exectuable
- OBJ_NAME = 02_getting_an_image_on_the_screen
- #This is the target that compiles our executable
- all : $(OBJS)
- gcc $(OBJS) -I/mingw64/include/SDL2 -L/mingw64/lib -w -Wl,-subsystem,windows -lmingw32 -lSDL2main -lSDL2 -o $(OBJ_NAME)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement