summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-11-25 11:14:29 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-11-25 11:14:29 +0800
commit8470b9ced8204cd12952016228aab1812b76e21b (patch)
tree8c164da7b6ffd6cbc352faebdd0fe3ad4ccc6ab2
parent24b3186128ea4703a5cd7a1ed84138aaf2ce900c (diff)
Add Makefile
-rw-r--r--Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..52b1988
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+MAJOR := 1
+MINOR := 0
+
+SOURCES := \
+ src/riApi.cpp \
+ src/riContext.cpp \
+ src/riFont.cpp \
+ src/riImage.cpp \
+ src/riMath.cpp \
+ src/riMiniEGL.cpp \
+ src/riPath.cpp \
+ src/riPixelPipe.cpp \
+ src/riRasterizer.cpp \
+ src/riVGU.cpp
+
+OBJECTS := $(SOURCES:.cpp=.o)
+
+.cpp.o:
+ $(CXX) -c -o $@ -Iinclude/EGL -Iinclude/VG -DEGLAPI= $<
+
+all: libOpenVG.so
+
+libOpenVG.so: libOpenVG.so.$(MAJOR)
+ ln -sf $< $@
+
+libOpenVG.so.$(MAJOR): libOpenVG.so.$(MAJOR).$(MINOR)
+ ln -sf $< $@
+
+libOpenVG.so.$(MAJOR).$(MINOR): $(OBJECTS)
+ $(CXX) -shared $^ -lX11 -lm -Wl,-soname -Wl,libOpenVG.so.$(MAJOR) -o $@
+
+clean:
+ rm -f libOpenVG.so*
+ rm -f $(OBJECTS)