/[marvin]/marvin/src/libnn/Makefile
ViewVC logotype

Diff of /marvin/src/libnn/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by srv89, Mon Sep 8 12:45:49 2003 UTC revision 1.5 by srv89, Mon Sep 8 14:12:40 2003 UTC
# Line 42  include common.Makefile Line 42  include common.Makefile
42    
43  NAME = libnn  NAME = libnn
44    
45  all: $(BYTE) $(OPT)  all: $(NAME).cma $(NAME).cmxa
46    
47  # Recompiles everything from scratch  # Recompiles everything from scratch
48  re: clean all  re: clean all
# Line 50  re: clean all Line 50  re: clean all
50  # bytecode and native-code compilation  # bytecode and native-code compilation
51  ######################################  ######################################
52    
53  $(NAME).cma:  mop:
54            @echo $(OCAMLFIND)
55            @echo $(OCAMLFINDPATH)
56            @echo $(PXPPATH)
57    
58    byte-recursive:
59          @echo " /"          @echo " /"
60          @echo " | compiling bytecode in subdirectories in order"          @echo " | making bytecode in subdirectories ..."
         @echo " | to build $@ (bytecode library) ..."  
61          @echo " \\"          @echo " \\"
62          @for i in $(SUBDIRS);\          @for i in $(SUBDIRS);\
63          do\          do\
64          ( cd $$i && make byte ) || exit 1 ;\          ( cd $$i && make byte ) || exit 1 ;\
65          done          done
66    
67    opt-recursive:
68          @echo " /"          @echo " /"
69          @echo " | building $@ (bytecode library) ..."          @echo " | making opt in subdirectories ..."
70          @echo " \\"          @echo " \\"
71          $(OCAMLFIND) $(OCAMLC) $(ALL_CMA_LIB) $(BLFLAGS) -o $@          @for i in $(SUBDIRS);\
72            do\
73            ( cd $$i && make opt ) || exit 1 ;\
74            done
75    
76  $(NAME).cmxa:  all-recursive:
77          @echo " /"          @echo " /"
78          @echo " | compiling native code in subdirectories in order"          @echo " | making all in subdirectories ..."
         @echo " | to build $@  and $(NAME).a (native code libraries) ..."  
79          @echo " \\"          @echo " \\"
80          @for i in $(SUBDIRS);\          @for i in $(SUBDIRS);\
81          do\          do\
82          ( cd $$i && make opt ) || exit 1 ;\          ( cd $$i && make all ) || exit 1 ;\
83          done          done
84    
85    $(NAME).cma: byte-recursive
86            @echo " /"
87            @echo " | building $@ (bytecode library) ..."
88            @echo " \\"
89            $(OCAMLFIND) $(OCAMLC) $(ALL_CMA_LIB) $(BLFLAGS) -o $@
90    
91    $(NAME).cmxa: opt-recursive
92          @echo " /"          @echo " /"
93          @echo " | building $@ and $(NAME).a (native code libraries) ..."          @echo " | building $@ and $(NAME).a (native code libraries) ..."
94          @echo " \\"          @echo " \\"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26