Last active
July 15, 2023 22:02
-
-
Save MarcosX/4751372 to your computer and use it in GitHub Desktop.
Simple SDL makefile
This file contains 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
# Directories | |
S_DIR=source | |
B_DIR=build | |
# Files | |
S_FILES=$(S_DIR)/sdl_test.cpp | |
# Output | |
EXEC=$(B_DIR)/sdl_app | |
# Build settings | |
CC=g++ | |
# SDL options | |
CC_SDL=-lSDL `sdl-config --cflags --libs` | |
all:Build | |
Build: | |
$(CC) $(S_FILES) -o $(EXEC) $(CC_SDL) | |
build_run:Build | |
$(EXEC) | |
clean: | |
rm -rf $(B_DIR)/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks yoo