-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (38 loc) · 1.12 KB
/
Copy pathMakefile
File metadata and controls
61 lines (38 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#//////////////////////////////////////////////////////////////////////////////////
#//// GENERIC make file
#///////////////////////////////////////////////////
#/////////////////////////////////
#/// version 1.0
#/// author : johnc
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#
# Include platform specific build settings
#
include ./buildconfig
.SUFFIXES: .cpp .cc .o .so .c .bundle
OUTPUT = ./
EXT = so
## shared Object / plugin
PLUGIN = stretchMesh.$(EXT)
EXTRA_INCLUDES = -I$(MAYA_LOCATION)/include
EXTRA_LIBS = -L$(MAYA_LOCATION)/lib
COMPILE = $(CC) -c $(CFLAGS) $(INCLUDES) $(EXTRA_INCLUDES)
.cpp.o:
$(COMPILE) $< -o $@
plugins: $(PLUGIN)
depend:
makedepend $(INCLUDES) $(EXTRA_INCLUDES) *.cc *.cpp
clean:
-rm -f *.o *~
##################
# Specific Rules #
##################
SOURCES = pluginMain.cpp\
stretchMeshCmd.cpp\
stretchMeshDeformer.cpp\
curveColliderLocator.cpp
OBJS = $(SOURCES:.cpp=.o)
all: $(SOURCES) $(PLUGIN)
$(PLUGIN): $(OBJS)
-rm -f $(OUTPUT)$@
$(LD) -o $(OUTPUT)$@ $(OBJS) $(LIBS) $(EXTRA_LIBS) -lgomp -lOpenMayaUI -lOpenMaya -lFoundation -lOpenMayaAnim -lOpenMayaFX -lOpenMayaRender