Commit d903ef2d authored by PoroCYon's avatar PoroCYon Committed by PoroCYon
Browse files

use pkg-config in makefile (thanks unlord)

parent a73dfb97
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment