diff options
author | Keith Packard <keithp@keithp.com> | 2013-07-11 17:02:01 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-07-11 17:02:22 -0700 |
commit | 0de6411c1702e81f54ebaed3a6c34e2aeaafa8cd (patch) | |
tree | 6eaf1532c43a107b5549fb5d7d94344a7385f29d /Makefile | |
parent | cd8a9edcd04033941baedc66003dda4e58a80493 (diff) |
Add lots more examples
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 31 insertions, 6 deletions
@@ -1,10 +1,35 @@ -CFLAGS=-O0 -g $(shell pkg-config --cflags xcb-shm xcb-aux) -LIBS=$(shell pkg-config --libs xcb-shm xcb-aux) +CFLAGS=-Wall -O0 -g $(shell pkg-config --cflags xcb-shm xcb-aux xcb-dri3 xcb-present xshmfence) +LIBS=$(shell pkg-config --libs xcb-shm xcb-aux xcb-dri3 xcb-present xshmfence) -OBJS=shmfd.o +all: shmfd dri3 futex xfence present -shmfd: $(OBJS) - $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) +SHMFD_OBJS=shmfd.o + +shmfd: $(SHMFD_OBJS) + $(CC) $(CFLAGS) -o $@ $(SHMFD_OBJS) $(LIBS) + +DRI3_OBJS=dri3.o + +dri3: $(DRI3_OBJS) + $(CC) $(CFLAGS) -o $@ $(DRI3_OBJS) $(LIBS) + +FUTEX_OBJS=futex.o + +futex: $(FUTEX_OBJS) + $(CC) $(CFLAGS) -o $@ $(FUTEX_OBJS) + +XFENCE_OBJS=xfence.o + +xfence: $(XFENCE_OBJS) + $(CC) $(CFLAGS) -o $@ $(XFENCE_OBJS) $(LIBS) + +PRESENT_OBJS=present.o + +present: $(PRESENT_OBJS) + $(CC) $(CFLAGS) -o $@ $(PRESENT_OBJS) $(LIBS) clean: - rm -f shmfd $(OBJS)
\ No newline at end of file + rm -f shmfd $(SHMFD_OBJS) + rm -f dri3 $(DRI3_OBJS) + rm -f futex $(FUTEX_OBJS) + rm -f present $(PRESENT_OBJS)
\ No newline at end of file |