source: trunk/Utilities/DirectShowReferenceSource/Sample/Unity01/RenderingPlugin/Linux/makefile @ 638

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 
1SRCS = ../RenderingPlugin.cpp
2OBJS = ${SRCS:.cpp=.o}
3UNITY_DEFINES = -DSUPPORT_OPENGL_LEGACY=1 -DSUPPORT_OPENGL_UNIFIED=1 -DUNITY_LINUX=1
4GLEW_CFLAGS = $(shell pkg-config --cflags glew)
5GLEW_LIBS = $(shell pkg-config --libs glew)
6CXXFLAGS = $(UNITY_DEFINES) -O2 -fPIC $(GLEW_CFLAGS)
7LDFLAGS = -shared -rdynamic
8LIBS = $(GLEW_LIBS)
9PLUGIN_SHARED = libRenderingPlugin.so
10CXX ?= g++
11
12.cpp.o:
13        $(CXX) $(CXXFLAGS) -c -o $@ $<
14
15all: shared
16
17clean:
18        rm -f $(OBJS) $(PLUGIN_SHARED)
19
20shared: $(OBJS)
21        $(CXX) $(LDFLAGS) -o $(PLUGIN_SHARED) $(OBJS) $(LIBS)
Note: See TracBrowser for help on using the repository browser.