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/trunk/src/runtime/c-libs/makefile
ViewVC logotype

Annotation of /sml/trunk/src/runtime/c-libs/makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (view) (download)

1 : monnier 249 #
2 :     # the makefile for the C libraries
3 :     #
4 :     # Currently, this is only used to clean the library directories.
5 :     #
6 :    
7 :     CC = cc
8 :     CFLAGS = -O
9 :     MAKE = make
10 :     AR = ar
11 :     ARFLAGS = rcv
12 :     RANLIB = ranlib
13 :    
14 :     VERSION = v-dummy
15 :    
16 :     LIBS = posix-os/libposix-os.a \
17 :     smlnj-runtime/libsmlnj-runt.a \
18 :     smlnj-signals/libsmlnj-sig.a \
19 :     smlnj-prof/libsmlnj-prof.a \
20 :     smlnj-sockets/libsmlnj-sock.a \
21 :     smlnj-time/libsmlnj-time.a \
22 :     smlnj-date/libsmlnj-date.a \
23 :     smlnj-math/libsmlnj-math.a \
24 :     smlnj-mp/libsmlnj-mp.a \
25 :     posix-error/libposix-error.a \
26 :     posix-filesys/libposix-filesys.a \
27 :     posix-io/libposix-io.a \
28 :     posix-procenv/libposix-procenv.a \
29 :     posix-process/libposix-process.a \
30 :     posix-signal/libposix-signal.a \
31 :     posix-sysdb/libposix-sysdb.a \
32 :     posix-sysdb/libposix-tty.a \
33 :     smlnj-ccalls/libsmlnj-ccalls.a
34 :    
35 :     LIB_DIRS = posix-os \
36 :     smlnj-runtime \
37 :     smlnj-signals \
38 :     smlnj-sockets \
39 :     smlnj-prof \
40 :     smlnj-time \
41 :     smlnj-date \
42 :     smlnj-math \
43 :     smlnj-mp \
44 :     posix-error \
45 :     posix-filesys \
46 :     posix-io \
47 :     posix-procenv \
48 :     posix-process \
49 :     posix-signal \
50 :     posix-sysdb \
51 :     posix-tty \
52 :     smlnj-ccalls
53 :    
54 :    
55 :     # include directories for this level
56 :     #
57 :     OBJS_DIR = ../objs
58 :     INC_DIR = ../include
59 :     INCLUDES = -I$(OBJS_DIR) -I$(INC_DIR)
60 :    
61 :     # include directories for the library sub-directories
62 :     #
63 :     LIB_OBJS_DIR = ../../objs
64 :     LIB_INC_DIR = ../../include
65 :     LIB_INCLUDES = -I$(LIB_OBJS_DIR) -I$(LIB_INC_DIR) -I..
66 :    
67 :     #
68 :     # arguments to recursive make
69 :     #
70 :     LIB_MK_ARGS = VERSION="$(VERSION)" \
71 :     MAKE="$(MAKE)" \
72 :     CC="$(CC)" CFLAGS="$(CFLAGS)" DEFS="$(DEFS)" \
73 :     AR="$(AR)" ARFLAGS="$(ARFLAGS)" \
74 :     RANLIB="$(RANLIB)" \
75 :     INCLUDES="$(LIB_INCLUDES)"
76 :    
77 :     all: $(VERSION)
78 :     for dir in $(LIB_DIRS); do \
79 :     (cd $$dir; echo "building $$dir"; $(MAKE) $(LIB_MK_ARGS)) ; \
80 :     done
81 :     rm -rf libcfuns.a
82 :    
83 :     $(VERSION):
84 :     rm -f v-* *.o libcfuns.a
85 :     echo "$(VERSION)" > $(VERSION)
86 :    
87 :     clean :
88 :     for dir in $(LIB_DIRS); do \
89 :     (cd $$dir; echo "cleaning $$dir"; $(MAKE) MAKE="$(MAKE)" clean) ; \
90 :     done
91 :     rm -f v-* *.o
92 :    

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