summaryrefslogtreecommitdiff
path: root/progs/directfb/Makefile
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@users.sourceforge.net>2006-05-31 17:05:11 +0000
committerClaudio Ciccani <klan@users.sourceforge.net>2006-05-31 17:05:11 +0000
commitfe94d0b33508560f7b42dacd457f9eedcaf1a210 (patch)
tree34c49ab4e01eafaf4d308c0d80e9c8d4c9b409be /progs/directfb/Makefile
parentb18191cf306c255fe5eff7762fc8e419e043a621 (diff)
Added some example progs using DirectFBGL.
Diffstat (limited to 'progs/directfb/Makefile')
-rw-r--r--progs/directfb/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/progs/directfb/Makefile b/progs/directfb/Makefile
new file mode 100644
index 0000000000..a541c8ff9a
--- /dev/null
+++ b/progs/directfb/Makefile
@@ -0,0 +1,36 @@
+# progs/directfb/Makefile
+
+TOP = ../..
+include $(TOP)/configs/current
+
+
+INCDIR = $(TOP)/include -I$(TOP)/progs
+
+LIB_DEP = $(LIB_DIR)/$(GL_LIB_NAME) $(LIB_DIR)/$(GLU_LIB_NAME)
+
+CFLAGS += $(shell pkg-config --cflags directfb)
+APP_LIB_DEPS += $(shell pkg-config --libs directfb)
+
+PROGS = df_gears \
+ df_reflect \
+ df_morph3d \
+ multi_window
+
+##### RULES #####
+
+.SUFFIXES:
+.SUFFIXES: .c
+
+.c: $(LIB_DEP)
+ $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
+
+
+##### TARGETS #####
+
+default: $(PROGS)
+
+
+clean:
+ -rm -f $(PROGS)
+ -rm -f *.o *~
+