summaryrefslogtreecommitdiffstats
path: root/progs/directfb/Makefile
diff options
context:
space:
mode:
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 00000000000..a541c8ff9aa
--- /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 *~
+