File: Make.lib

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (47 lines) | stat: -rw-r--r-- 1,002 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

OBJ = $(MACROS:.sci=.bin)
MACROSN = $(MACROS:.sci=)

all :: genlib names lib 

all ::	Makefile.mak 


Makefile.mak	: Makefile
	$(SCIDIR)/util/Mak2VCMak Makefile

distclean::
	$(RM) lib  *.bin

.sci.bin:
	@SCI=$(SCIDIR);export SCI;$(SCIDIR)/bin/scilab -comp  $*.sci


lib  :   $(MACROS) 
	@echo $? > tmp_comp ;$(SCIDIR)/macros/Lib Xtmp_comp; $(RM) tmp_comp
	@$(RM) `cat tmp_Bin`
	@echo Starting Compilation 
	@if ( $(SCIDIR)/util/scibatch $(SCIDIR) tmp_Macros ) ; \
	then echo generating lib and names; \
	     $(SCIDIR)/util/scibatch $(SCIDIR) genlib ;\
	else echo "Compilation failed";$(RM) `cat tmp_Bin` ;exit 1; \
	fi
	@echo End of compilation
	@$(RM) tmp_* 

clean::
	$(RM) *tmp_*

distclean::
	$(RM) *.bin lib names Lib.mak Macros.mak  genlib 

# generates the names file and a Scilab script genlib 
# for building lib 

names genlib : 	$(MACROS) Makefile 
	@echo $(NAM) > tmp_comp ;
	@echo $(NAME) >> tmp_comp ;
	@echo $(MACROS) >> tmp_comp ;
	@$(SCIDIR)/macros/Name Xtmp_comp; $(RM) tmp_comp