Last change
on this file since 638 was
638,
checked in by roman, 8 years ago
|
Media source texture reader and Unity 3D sample project
|
File size:
567 bytes
|
Line | |
---|
1 | SRCS = ../RenderingPlugin.cpp |
---|
2 | OBJS = ${SRCS:.cpp=.o} |
---|
3 | UNITY_DEFINES = -DSUPPORT_OPENGL_LEGACY=1 -DSUPPORT_OPENGL_UNIFIED=1 -DUNITY_LINUX=1 |
---|
4 | GLEW_CFLAGS = $(shell pkg-config --cflags glew) |
---|
5 | GLEW_LIBS = $(shell pkg-config --libs glew) |
---|
6 | CXXFLAGS = $(UNITY_DEFINES) -O2 -fPIC $(GLEW_CFLAGS) |
---|
7 | LDFLAGS = -shared -rdynamic |
---|
8 | LIBS = $(GLEW_LIBS) |
---|
9 | PLUGIN_SHARED = libRenderingPlugin.so |
---|
10 | CXX ?= g++ |
---|
11 | |
---|
12 | .cpp.o: |
---|
13 | $(CXX) $(CXXFLAGS) -c -o $@ $< |
---|
14 | |
---|
15 | all: shared |
---|
16 | |
---|
17 | clean: |
---|
18 | rm -f $(OBJS) $(PLUGIN_SHARED) |
---|
19 | |
---|
20 | shared: $(OBJS) |
---|
21 | $(CXX) $(LDFLAGS) -o $(PLUGIN_SHARED) $(OBJS) $(LIBS) |
---|
Note: See
TracBrowser
for help on using the repository browser.