File: Makefile

package info (click to toggle)
torch 2-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,488 kB
  • ctags: 3,217
  • sloc: cpp: 14,272; makefile: 201
file content (20 lines) | stat: -rw-r--r-- 376 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
#
# 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)