41 |
|
|
42 |
SUBDIRS = algo \ |
SUBDIRS = algo \ |
43 |
type \ |
type \ |
44 |
filter |
filter \ |
45 |
|
perl_interface |
46 |
|
|
47 |
# sources, directory by directory. |
# sources, directory by directory. |
48 |
|
|
49 |
#------------------------------------------------------------------------------- |
#------------------------------------------------------------------------------- |
50 |
|
|
51 |
|
# perl_interface/ |
52 |
|
|
53 |
|
#subdirectory name |
54 |
|
PERL_INTERFACE_DIR = perl_interface |
55 |
|
# name of the compiled bytecode .a lib (without path!) |
56 |
|
PERL_INTERFACE_A = lib$(PERL_INTERFACE_DIR).a |
57 |
|
# name of the compiled bytecode .a lib (with path!) |
58 |
|
PERL_INTERFACE_A_LIB = $(PERL_INTERFACE_DIR)/lib$(PERL_INTERFACE_DIR).a |
59 |
|
# .cc sources (with paths!) |
60 |
|
PERL_INTERFACE_CC = $(wildcard $(PERL_INTERFACE_DIR)/*.cc) |
61 |
|
# compiled native code .o files (with path!) |
62 |
|
PERL_INTERFACE_O = $(PERL_INTERFACE_CC:.cc=.o) |
63 |
|
# compiled native code .o files (with path!) |
64 |
|
PERL_INTERFACE_O_LIB = $(PERL_INTERFACE_O) |
65 |
|
|
66 |
|
#------------------------------------------------------------------------------- |
67 |
# algo/ |
# algo/ |
68 |
|
|
69 |
#subdirectory name |
#subdirectory name |
138 |
ALL_A_LIB = $(ALGO_A_LIB) \ |
ALL_A_LIB = $(ALGO_A_LIB) \ |
139 |
$(TYPE_A_LIB)\ |
$(TYPE_A_LIB)\ |
140 |
$(FILTER_A_LIB)\ |
$(FILTER_A_LIB)\ |
141 |
|
$(PERL_INTERFACE_A_LIB)\ |
142 |
$(MAIN_A_LIB) |
$(MAIN_A_LIB) |
143 |
|
|
144 |
# all .cmx files required for the libnn.cmxa native code lib. |
# all .cmx files required for the libnn.cmxa native code lib. |
145 |
ALL_O_LIB = $(TYPE_O_LIB)\ |
ALL_O_LIB = $(TYPE_O_LIB)\ |
146 |
$(ALGO_O_LIB)\ |
$(ALGO_O_LIB)\ |
147 |
$(FILTER_O_LIB)\ |
$(FILTER_O_LIB)\ |
148 |
|
$(PERL_INTERFACE_O_LIB)\ |
149 |
$(MAIN_O_LIB) |
$(MAIN_O_LIB) |
150 |
|
|
151 |
#------------------------------------------------------------------------------- |
#------------------------------------------------------------------------------- |
170 |
DVIPS_HERE = @DVIPS_HERE@ |
DVIPS_HERE = @DVIPS_HERE@ |
171 |
TEXI2HTML_HERE = @TEXI2HTML_HERE@ |
TEXI2HTML_HERE = @TEXI2HTML_HERE@ |
172 |
|
|
173 |
INCLUDES = -I./algo/ -I./type/ -I./filter/ -I./ |
INCLUDES = -I./algo/ -I./type/ -I./filter/ -I./ `perl -MExtUtils::Embed -e ccopts` |
174 |
|
|
175 |
# General compilation flags. |
# General compilation flags. |
176 |
############################ |
############################ |
184 |
#################### |
#################### |
185 |
|
|
186 |
# bytecode |
# bytecode |
187 |
BLFLAGS = -a |
BLFLAGS = -a `perl -MExtUtils::Embed -e ldopts` |
188 |
# native code |
# native code |
189 |
OFLAGS = -lsip -L/usr/local/libsip |
OFLAGS = -lsip -L/usr/local/libsip |
190 |
|
|