#
# 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))
