Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
José Pardo Madera
/
ProjectoMultimeda2025
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0b0d157a
authored
Mar 13, 2025
by
José Pardo Madera
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Hecho makefile incremental.
parent
0ca50bb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
6 deletions
.gitignore
makefile
.gitignore
View file @
0b0d157a
/build
*.elf
*.nds
obj/
makefile
View file @
0b0d157a
CC
=
g++
HeaderFiles
=
Personaje.h Sprite.h Objeto.h Hitbox.h Texto.h GestorPantallas.h PantallaPrincipal.h Fuente.h
CodeFiles
=
main.cpp Personaje.cpp Sprite.cpp Objeto.cpp Hitbox.cpp Texto.cpp GestorPantallas.cpp PantallaPrincipal.cpp
bin
=
Executable
Executable
:
$(CodeFiles) $(HeaderFiles)
$(CC)
$(CodeFiles)
-w
-lSDL2
-lSDL2_image
-lSDL2_ttf
-o
Executable
objdir
=
obj
code_files_in_obj
=
$
(
CodeFiles:%
=
$(objdir)
/%
)
objs
=
$
(
code_files_in_obj:.cpp
=
.o
)
deps
=
$
(
code_files_in_obj:.cpp
=
.d
)
link_flags
=
-lSDL2
-lSDL2_image
-lSDL2_ttf
compile_flags
=
-w
$(link_flags)
$(bin)
:
$(objs)
$(CC)
$(objs)
$(compile_flags)
-o
$@
$(objdir)/%.o
:
%.cpp | $(objdir)
$(CC)
-c
-o
$@
$<
$(compile_flags)
$(objdir)/%.d
:
%.cpp | $(objdir)
$(CC)
-M
$^
-MT
$
(
patsubst %.d,%.o,
$@
)
-MF
$@
$(objdir)
:
mkdir obj
.PHONY
:
clean
clean
:
-
rm
$(bin)
-
rm
-r
obj
include
$(deps)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment