Skip to content

Commit 8b18521

Browse files
committed
Update makefile for Ubuntu 22
1 parent 2d3679a commit 8b18521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CC := gcc
2-
CFLAGS := -Wall -g -Iinclude/
2+
CFLAGS := -Wall -g -Iinclude/ `pkg-config --cflags sdl`
33

44
OBJS := main.o log.o \
55
system.o \
@@ -31,7 +31,7 @@ SRCS := $(subst .o,.c,$(OBJS))
3131
all: kvmulate
3232

3333
kvmulate: $(OBJS)
34-
$(CC) $(CFLAGS) -lSDL -pthread -o $@ $^
34+
$(CC) $(CFLAGS) -lSDL -pthread -o $@ $^ `pkg-config --libs sdl`
3535

3636
%.o: %.c
3737
@echo "CC $<"

0 commit comments

Comments
 (0)