Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
smol
Commits
d903ef2d
Commit
d903ef2d
authored
Feb 10, 2019
by
PoroCYon
Committed by
PoroCYon
Feb 27, 2019
Browse files
use pkg-config in makefile (thanks unlord)
parent
a73dfb97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
d903ef2d
...
@@ -27,8 +27,8 @@ ASFLAGS += -f elf64
...
@@ -27,8 +27,8 @@ ASFLAGS += -f elf64
endif
endif
LDFLAGS_
=
$(LDFLAGS)
-T
$(LDDIR)
/link.ld
--oformat
=
binary
LDFLAGS_
=
$(LDFLAGS)
-T
$(LDDIR)
/link.ld
--oformat
=
binary
CFLAGS
+=
-m
$(BITS)
CFLAGS
+=
-m
$(BITS)
$(
shell
pkg-config
--cflags
sdl2
)
CXXFLAGS
+=
-m
$(BITS)
CXXFLAGS
+=
-m
$(BITS)
$(
shell
pkg-config
--cflags
sdl2
)
LIBS
=
-lc
LIBS
=
-lc
...
@@ -39,7 +39,7 @@ PYTHON3 ?= python3
...
@@ -39,7 +39,7 @@ PYTHON3 ?= python3
all
:
$(BINDIR)/hello $(BINDIR)/sdl
all
:
$(BINDIR)/hello $(BINDIR)/sdl
LIBS
+=
-lX11
#
-lSDL2 -lGL
LIBS
+=
-lSDL2
-lGL
#-lX11
clean
:
clean
:
@
$(RM)
-vrf
$(OBJDIR)
$(BINDIR)
@
$(RM)
-vrf
$(OBJDIR)
$(BINDIR)
...
...
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