summaryrefslogtreecommitdiffstats
path: root/progs/egl/Makefile
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-04-22 21:17:14 +0000
committerBrian Paul <[email protected]>2005-04-22 21:17:14 +0000
commitfc06f9fb252264dd3fefe04afbb3820e885255ed (patch)
tree3af3c3d50e566c7d5fd467ee11295112ff356a51 /progs/egl/Makefile
parent20d44dc9bc0f60afa93a6542ebcda44ee88f69ef (diff)
demo / test progs
Diffstat (limited to 'progs/egl/Makefile')
-rw-r--r--progs/egl/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/progs/egl/Makefile b/progs/egl/Makefile
new file mode 100644
index 00000000000..27788663d74
--- /dev/null
+++ b/progs/egl/Makefile
@@ -0,0 +1,42 @@
+# progs/egl/Makefile
+
+TOP = ../..
+include $(TOP)/configs/current
+
+
+INCLUDE_DIRS = -I$(TOP)/include
+
+HEADERS = $(TOP)/include/GLES/egl.h
+
+PROGRAMS = \
+ demo1 \
+ eglinfo
+
+
+.c.o:
+ $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
+
+
+
+default: $(PROGRAMS)
+
+
+demo1: demo1.o $(LIB_DIR)/libEGL.so
+ $(CC) demo1.o -L$(LIB_DIR) -lEGL -o $@
+
+demo1.o: demo1.c $(HEADERS)
+ $(CC) -c $(CFLAGS) -I$(TOP)/include demo1.c
+
+
+eglinfo: eglinfo.o $(LIB_DIR)/libEGL.so
+ $(CC) eglinfo.o -L$(LIB_DIR) -lEGL -o $@
+
+eglinfo.o: eglinfo.c $(HEADERS)
+ $(CC) -c $(CFLAGS) -I$(TOP)/include eglinfo.c
+
+
+
+clean:
+ rm -f *.o *~
+ rm -f *.so
+ rm -f $(PROGRAMS)