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 (42 lines) | stat: -rw-r--r-- 1,470 bytes parent folder | download | duplicates (2)
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
OS := $(shell uname -s)
TORCHDIR := $(shell pwd)
include $(CURDIR)/Makefile_options_$(OS)

SUBDIRS := core
SUBDIRS += $(PACKAGES)

all:
	@echo ">>> Try to compile Torch <<<"
	#for subdir in ${SUBDIRS} ; do ( cd $$subdir ; ${MAKE} $@ ) || exit 10 ; done
	for subdir in ${SUBDIRS} ; do ( ${MAKE} -C ${CURDIR}/$$subdir -f ../Makefile.modules $@ ) || exit 10 ; done
	@echo ">> !!! Ok !!! <<<"

clean:
	@echo ">>> Atomise all <<<"
	#for subdir in ${SUBDIRS} ; do ( cd $$subdir ; ${MAKE} $@ ) || exit 10 ; done
	@echo ">>> Thermonuclearise all <<<"
	for subdir in ${SUBDIRS} ; do ( ${MAKE} -C ${CURDIR}/$$subdir -f ../Makefile.modules $@ ) || exit 10 ; done
	rm -Rf $(LIBTORCHXX)
	rm -Rf $(OBJS_DIR)
	rm -Rf $(LIBS_DIR)
	@echo ">> !!! Ok !!! <<<"

distclean:
	@echo ">>> Thermonuclearise all <<<"
	#for subdir in ${SUBDIRS} ; do ( cd $$subdir ; ${MAKE} $@ ) || exit 10 ; done
	for subdir in ${SUBDIRS} ; do ( ${MAKE} -C ${CURDIR}/$$subdir -f ../Makefile.modules $@ ) || exit 10 ; done
	rm -Rf lib
	rm -Rf objs
	@echo ">> !!! Ok !!! <<<"

depend:
	@echo ">>> Dependencies <<<"
	#for subdir in ${SUBDIRS} ; do ( cd $$subdir ; ${MAKE} $@ ) || exit 10 ; done
	for subdir in ${SUBDIRS} ; do ( ${MAKE} -C ${CURDIR}/$$subdir -f ${CURDIR}/Makefile.modules $@ ) || exit 10 ; done
	mkdir -p $(OBJS_DIR)/static
	mkdir -p $(OBJS_DIR)/dynamic
	mkdir -p $(LIBS_DIR)
	@echo ">> !!! Ok !!! <<<"

Makefile_options_$(OS):
	@echo "**** PLEASE CHECK YOUR MAKEFILE_OPTIONS for >>" $(OS) "<< ****"