File: Makefile_options_Linux

package info (click to toggle)
torch3 3.1-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,940 kB
  • ctags: 2,744
  • sloc: cpp: 24,245; python: 299; makefile: 153
file content (75 lines) | stat: -rw-r--r-- 1,774 bytes parent folder | download | duplicates (8)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# What you have to check...
#

# Packages you want to use
PACKAGES = convolutions datasets decoder distributions gradients kernels matrix nonparametrics speech
#PACKAGES =

# Magik key if you have several makefile
# for the same platform
MAGIK_KEY = 

# Compiler, linker and archiver
CC = g++
CXX = g++
LD = $(CC)
AR = ar -rus

# Command for creating dependencies
DEP = $(CC) -MM

# Your librairies
# (for example "-lm", but not needed on most systems...)
MYLIBS = 

# Your includes
# (for example -I/usr/local/special)
MYINCS = 

# optimize mode
DEBUG = OPT
# debug mode
#DEBUG = DBG

# double version
#FLOATING = DOUBLE
# floating version
FLOATING = FLOAT

# Debug double mode
CFLAGS_DBG_DOUBLE = -g -Wall -DUSE_DOUBLE -DDEBUG

# Debug float mode
CFLAGS_DBG_FLOAT = -g -Wall -DDEBUG

# Optimized double mode
#CFLAGS_OPT_DOUBLE = -Wall -O2 -ffast-math -mcpu=i686 -march=i686 -malign-double -DUSE_DOUBLE
CFLAGS_OPT_DOUBLE = -Wall -O2 -ffast-math -DUSE_DOUBLE

# Optimized float mode
#CFLAGS_OPT_FLOAT = -Wall -O2 -ffast-math -mcpu=i686 -march=i686 -malign-double
CFLAGS_OPT_FLOAT = -Wall -O2 -ffast-math

#
#
# Variables that you may find useful inside your Makefile
# Do not touch.
#
#

MODE = $(DEBUG)_$(FLOATING)
VERSION_KEY = $(MAGIK_KEY)$(OS)_$(MODE)
#LIBS_DIR = $(TORCHDIR)/lib/$(VERSION_KEY)
# Modified by KA for Debian
LIBS_DIR = $(TORCHDIR)/lib/
#OBJS_DIR = $(TORCHDIR)/objs/$(VERSION_KEY)
# Modified by KA for Debian
OBJS_DIR = $(TORCHDIR)/objs/
LIBTORCH = $(LIBS_DIR)/libtorch.a
#LIBSOTORCH = $(LIBS_DIR)/libtorch.so 
LIBSOTORCH = $(LIBS_DIR)/libtorch.so.3.0.0
#LIBS = -L$(TORCHDIR)/lib/$(VERSION_KEY) $(LIBTORCH) $(MYLIBS)
LIBS = -L$(TORCHDIR)/lib/ $(LIBTORCH) $(MYLIBS)
INCS := -I$(TORCHDIR)/core $(MYINCS)
INCS += $(foreach f,$(PACKAGES),-I$(TORCHDIR)/$(f))