Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/branches/rt-transition/idl-specs/Makefile
ViewVC logotype

Annotation of /sml/branches/rt-transition/idl-specs/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3740 - (view) (download)

1 : jhr 2987 # Makefile
2 :     #
3 :     # COPYRIGHT (c) 2007 The SML/NJ Fellowship
4 :     #
5 :     # Temporary makefile for generating glue code from the IDL specs.
6 :     # Eventually, this should be generated from a Makefile.in as
7 :     # part of system configuration
8 :     #
9 :    
10 :     # assume that we are in an SML/NJ tree and that the ml-idl tool is
11 :     # installed in the bin directory
12 :     #
13 :     ML_IDL=../../bin/ml-idl
14 : jhr 2991 ML_IDL_FLAGS=
15 : jhr 2987
16 :     # roots of the various installation directories
17 :     #
18 :     BASIS_IMP_DIR=../system/Basis/Implementation
19 :     OLD_RUNTIME_DIR=../runtime
20 : jhr 3040 NEW_RUNTIME_DIR=../../rt
21 : jhr 2987
22 : jhr 3066 IDL_FILES= sml-basis.idl \
23 :     smlnj-runtime.idl
24 : jhr 2991
25 : jhr 3425 BASIS_C_FILES = cfun-list.h \
26 :     cfun-proto-list.h \
27 :     sml-basis-lib.c \
28 :     sml-basis.c \
29 :     sml-basis.h
30 :    
31 :     RT_C_FILES = cfun-list.h \
32 :     cfun-proto-list.h \
33 :     smlnj-runtime-lib.c \
34 :     smlnj-runtime.c \
35 :     smlnj-runtime.h
36 :    
37 : jhr 3066 BASIS_CXX_FILES = sml-basis-lib.cxx \
38 :     sml-basis-lib.hxx \
39 :     sml-basis.cxx \
40 :     sml-basis.hxx
41 : jhr 3040
42 : jhr 3066 RT_CXX_FILES = smlnj-runtime-lib.cxx \
43 :     smlnj-runtime-lib.hxx \
44 :     smlnj-runtime.hxx \
45 :     smlnj-runtime.cxx
46 :    
47 : jhr 3040 SML_FILES = sml-basis-sig.sml \
48 :     sml-basis.sml \
49 :     smlnj-runtime-sig.sml \
50 :     smlnj-runtime.sml
51 :    
52 : jhr 2987 help:
53 : jhr 2991 @echo "This makefile supports the following targets:"
54 : jhr 3740 @echo " help -- print this message"
55 :     @echo " install -- generate and install all files to the appropriate locations"
56 :     @echo " install-new-rt -- generate and install C++ glue code for the new runtime and basis"
57 :     @echo " new-rt -- generate C++ glue code for the new runtime and basis"
58 :     @echo " install-sml -- generate and install the SML glue code for the new runtime and basis"
59 :     @echo " sml -- generate the SML glue code for the new runtime and basis"
60 :     @echo " classic-basis -- generate and install C glue code for the classic basis"
61 :     @echo " classic-rt -- generate and install C glue code for the classic runtime"
62 :     @echo " clean -- remove any generated files"
63 : jhr 2987
64 : jhr 3425 # generate and install the class version of the basis glue
65 :     #
66 :     classic-basis:
67 :     $(ML_IDL) -t classic $(ML_IDL_FLAGS) sml-basis.idl
68 :     cp -p $(BASIS_C_FILES) $(OLD_RUNTIME_DIR)/smlnj-rt-lib
69 : jhr 2987
70 : jhr 3425 # generate and install the class version of the smlnj-runtime glue
71 :     #
72 :     classic-rt:
73 :     $(ML_IDL) -t classic $(ML_IDL_FLAGS) smlnj-runtime.idl
74 :     cp -p $(RT_C_FILES) $(OLD_RUNTIME_DIR)/sml-basis-lib
75 :    
76 : jhr 2987 new-rt:
77 : jhr 2991 for f in $(IDL_FILES) ; do \
78 :     $(ML_IDL) -t new-rt $(ML_IDL_FLAGS) $$f; \
79 :     done
80 : jhr 2987
81 :     sml:
82 : jhr 2991 for f in $(IDL_FILES) ; do \
83 :     $(ML_IDL) -t smlnj $(ML_IDL_FLAGS) $$f; \
84 :     done
85 : jhr 2988
86 : jhr 3739 # generate and install generated files for new runtime system and compiler.
87 : jhr 3425 #
88 : jhr 3740 install: install-new-rt install-sml
89 :    
90 :     install-new-rt: new-rt
91 : jhr 3066 cp -p $(BASIS_CXX_FILES) $(NEW_RUNTIME_DIR)/src/smlnj-rt/basis/glue
92 :     cp -p $(RT_CXX_FILES) $(NEW_RUNTIME_DIR)/src/smlnj-rt/runtime/glue
93 : jhr 3740
94 :     install-sml:
95 : jhr 3425 if [ ! -d $(BASIS_IMP_DIR)/RuntimeIDL ] ; then \
96 :     mkdir $(BASIS_IMP_DIR)/RuntimeIDL; \
97 :     fi
98 : jhr 3405 cp -p $(SML_FILES) $(BASIS_IMP_DIR)/RuntimeIDL
99 : jhr 3740
100 : jhr 2988 clean:
101 : jhr 3002 rm -rf *.h *.c *.hxx *.cxx *.sml *.cm
102 : jhr 2991

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0