Use pkg-config for X11

This commit is contained in:
Yamagi Burmeister 2011-10-05 16:46:25 +00:00
parent 0a6df135dd
commit 26f00aaf53
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ build/refresher/%.o: %.c
@mkdir -p $(@D) @mkdir -p $(@D)
@$(CC) -c $(CFLAGS) $(CFSDL) $(INCLUDE) -o $@ $< @$(CC) -c $(CFLAGS) $(CFSDL) $(INCLUDE) -o $@ $<
release/ref_gl.so : INCLUDE += -I/usr/X11R6/include release/ref_gl.so : INCLUDE += $(shell pkg-config x11 --cflags)
release/ref_gl.so : CFLAGS += -fPIC release/ref_gl.so : CFLAGS += -fPIC
release/ref_gl.so : LDFLAGS += -shared release/ref_gl.so : LDFLAGS += -shared