File: Makefile.libs.common

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 (28 lines) | stat: -rw-r--r-- 633 bytes parent folder | download
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
# -*- makefile -*-

-include ../kernel/Makefile.files
-include ../matrix/Makefile.files
-include ../addons/Makefile.files
-include ../distributions/Makefile.files

TOCLEAN += $(OFILES)

CXXFLAGS += -g -O2 -Wall
CPPFLAGS += -I../kernel -I../matrix -I../addons -I../distributions

LOADLIBES=-lm -lc

# for compatibility - you don't actually want to strip the library
install-strip: install

clean:
	-rm -f $(TOCLEAN)

.PHONY: all install install-strip uninstall clean

# automatically account for #include dependencies
override CPPFLAGS+=-MMD
dfiles = $(notdir $(patsubst %.o, %.d, $(OFILES)))
-include $(dfiles)

TOCLEAN += $(dfiles)