diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-04-01 14:20:24 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-04-01 22:25:48 +0800 |
commit | fc3ddd4b566380e7684c780450016e3e191a4160 (patch) | |
tree | 539e4eb39fb89a9ebb83116deef9c5d5ebc57e4d /progs/egl/openvg/Makefile | |
parent | 7f231cab2b7c13ba70d6aa694f74b6d6eee6470f (diff) |
progs/openvg: Move OpenVG demos to a subdirectory of progs/egl.
That is, move
progs/openvg/demos to progs/egl/openvg,
progs/openvg/trivial to progs/egl/openvg/trivial.
Diffstat (limited to 'progs/egl/openvg/Makefile')
-rw-r--r-- | progs/egl/openvg/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/progs/egl/openvg/Makefile b/progs/egl/openvg/Makefile new file mode 100644 index 0000000000..8a4c4d81a4 --- /dev/null +++ b/progs/egl/openvg/Makefile @@ -0,0 +1,39 @@ +# progs/egl/openvg/Makefile + +TOP = ../../.. +include $(TOP)/configs/current + +VG_LIBS=-lm -pthread -lX11 -lEGL -lOpenVG +INCLUDE_DIRS = -I$(TOP)/include + +PROGRAMS = \ + lion \ + sp + +.c.o: + $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@ + + + +default: $(PROGRAMS) + +lion: lion.o lion-render.o + $(CC) $(CFLAGS) lion.o lion-render.o -L$(TOP)/$(LIB_DIR) $(VG_LIBS) -o $@ + +lion.o: lion.c lion-render.h $(HEADERS) + $(CC) -c $(CFLAGS) -I$(TOP)/include lion.c +lion-render.o: lion-render.c lion-render.h $(HEADERS) + $(CC) -c $(CFLAGS) -I$(TOP)/include lion-render.c + + +sp: sp.c eglcommon.o + $(CC) $(INCLUDE_DIRS) $(CFLAGS) $^ -L$(TOP)/$(LIB_DIR) $(LIBS) $(VG_LIBS) $(APP_LIB_DEPS) -o $@ + +eglcommon.o: eglcommon.c $(HEADERS) + $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) eglcommon.c + + +clean: + rm -f *.o *~ + rm -f *.so + rm -f $(PROGRAMS) |