File: Makefile.gnu

package info (click to toggle)
field3d 1.7.3-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,684 kB
  • sloc: cpp: 25,324; ansic: 2,594; python: 222; sh: 72; makefile: 26
file content (59 lines) | stat: -rw-r--r-- 1,471 bytes parent folder | download | duplicates (3)
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
59
# edit this if your maya installation is somewhere else.
MAYA_LOCATION = /net/apps/spinux1/aw/maya2012

#edit this for the Field3D installation directory
FIELD3D_ROOT = /usr/3rd_party_software/Field3D
FIELD3D_INC = $(FIELD3D_ROOT)/include
FIELD3D_LIB = $(FIELD3D_ROOT)/lib

C++	 = g++

CFLAGS = -DBits64_ -m64 -DUNIX -D_BOOL -DLINUX -DFUNCPROTO -D_GNU_SOURCE \
         -DLINUX_64 -fPIC \
         -fno-strict-aliasing -DREQUIRE_IOSTREAM -Wno-deprecated -O3 -Wall \
         -Wno-multichar -Wno-comment -Wno-sign-compare -funsigned-char \
         -Wno-reorder -fno-gnu-keywords -ftemplate-depth-25 -pthread

C++FLAGS	= $(CFLAGS) $(WARNFLAGS) -Wno-deprecated -fno-gnu-keywords

INCLUDES	= -I. -I.. -I$(MAYA_LOCATION)/include \
						-I/usr/X11R6/include \
						-I/usr/include/OpenEXR \
						-I$(FIELD3D_INC)

LD	 = $(C++) -shared $(NO_TRANS_LINK) $(C++FLAGS)

# add more libs if you need to for your plugin
LIBS	 = -L$(MAYA_LOCATION)/lib -lOpenMaya\
				 -Wl,-rpath,$(FIELD3D_LIB) -L$(FIELD3D_LIB) -lField3D


exportF3d.so:	exportF3d.o
	-rm -f $@
	$(LD) -o $@ $^ $(LIBS) -lOpenMayaAnim -lOpenMayaFX


depend:
	makedepend $(INCLUDES) -I/usr/include/CC *.cc

clean:
	-rm -f *.o

Clean:
	-rm -f *.o *.so *.lib *.bak *.bundle

##################
# Generic Rules  #
##################

%.o :	%.cpp
	$(C++) -c $(INCLUDES) $(C++FLAGS) $<

%.$(so) :	%.cpp
	-rm -f $@
	$(C++) -o $@ $(INCLUDES) $(C++FLAGS) $< $(LFLAGS) $(LIBS)

%.$(so) :	%.o
	-rm -f $@
	$(LD) -o $@ $< $(LIBS)