diff options
Diffstat (limited to 'progs/openvg/demos/Makefile')
-rw-r--r-- | progs/openvg/demos/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/progs/openvg/demos/Makefile b/progs/openvg/demos/Makefile new file mode 100644 index 00000000000..7ecb987f9d1 --- /dev/null +++ b/progs/openvg/demos/Makefile @@ -0,0 +1,40 @@ +# progs/vg/Makefile + +TOP = ../../.. +include $(TOP)/configs/current + +VG_LIBS=-lm -pthread -lEGL -lOpenVG +INCLUDE_DIRS = -I$(TOP)/include + +PROGRAMS = \ + gears \ + lion + +.c.o: + $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@ + + + +default: $(PROGRAMS) + + +gears: gears.o + $(CC) $(CFLAGS) gears.o -L$(TOP)/$(LIB_DIR) $(VG_LIBS) -o $@ + +gears.o: gears.c $(HEADERS) + $(CC) -c $(CFLAGS) -I$(TOP)/include gears.c + + +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 + + +clean: + rm -f *.o *~ + rm -f *.so + rm -f $(PROGRAMS) |