]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
dfbtest_fillrect: Adding makefile
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 9 Feb 2011 18:57:23 +0000 (13:57 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 9 Feb 2011 18:57:23 +0000 (13:57 -0500)
root_image/tools/drfb_test/Makefile [new file with mode: 0644]

diff --git a/root_image/tools/drfb_test/Makefile b/root_image/tools/drfb_test/Makefile
new file mode 100644 (file)
index 0000000..dead41d
--- /dev/null
@@ -0,0 +1,35 @@
+TARGETS-y := dfbtest_fillrect
+TARGETS := $(TARGETS-y)
+
+ifeq ($(ARCH),x86_64)
+LIBSDIR = lib64
+else
+LIBSDIR = lib
+endif
+
+INSTALL_BIN-y := dfbtest_fillrect
+INSTALL_BIN := $(INSTALL_BIN-y)
+
+LDFLAGS        += -L../../userspace/usr/$(LIBSDIR) -L../../userspace/usr/lib -ldirectfb
+LDFLAGS += -Wl,-rpath=/usr/lib64
+CFLAGS += -I../../directfb/include -I../../directfb/lib
+export LD_LIBRARY_PATH = ../../userspace/usr/lib
+
+.PHONY: all
+all: build
+
+.PHONY: build
+build: $(TARGETS)
+
+.PHONY: install
+install: build
+       $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
+       $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
+
+.PHONY: clean
+clean:
+       $(RM) *.o $(TARGETS) *~ $(DEPS)
+
+%.o: %.c $(HDRS) Makefile
+       $(CC) -c $(CFLAGS) -o $@ $<
+