File: Makefile

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 (20 lines) | stat: -rw-r--r-- 379 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
#
# Torch user Makefile example
#

# Torch location.
# Make sure to specify correct location...

TORCHDIR := $(shell cd ../..; pwd)

#
# All that follows you can probably keep as is...
#

OS := $(shell uname -s)
include $(TORCHDIR)/Makefile_options_$(OS)

%: %.cc
	cd $(TORCHDIR); ${MAKE}
	mkdir -p $(VERSION_KEY)
	$(CC) $(CFLAGS_$(MODE)) $(INCS) -o $(VERSION_KEY)/$@ $< $(LIBS)