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/smlnj-ccalls/makefile
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (view) (download)

1 : monnier 2 #
2 :     # makefile for the C library that provides ML-callable C functions
3 :     #
4 :    
5 :     SHELL = /bin/sh
6 :    
7 :     INC_DIR = ../../include
8 :     CLIB_DIR = ../
9 :    
10 :     INCLUDES = -I$(INC_DIR) -I$(CLIB_DIR) -I../../objs
11 :    
12 :     MAKE = make
13 :     AR = ar
14 :     ARFLAGS = rcv
15 :     RANLIB = ranlib
16 :    
17 :     LIBRARY = libsmlnj-ccalls.a
18 :    
19 :     VERSION = v-dummy
20 :    
21 :    
22 :    
23 :     OBJS = c-calls-lib.o \
24 :     c-calls.o \
25 :     c-calls-fns.o \
26 :     c-entry.o \
27 :     cutil.o
28 :    
29 :     C_CFUNS = cutil-cfuns.h
30 :    
31 :     $(LIBRARY) : $(VERSION) $(OBJS)
32 :     rm -rf $(LIBRARY)
33 :     $(AR) $(ARFLAGS) $(LIBRARY) $(OBJS)
34 :     $(RANLIB) $(LIBRARY)
35 :    
36 :     $(VERSION) :
37 :     ($(MAKE) MAKE="$(MAKE)" clean)
38 :     echo "$(VERSION)" > $(VERSION)
39 :    
40 :     c-calls-lib.o: $(INC_DIR)/ml-osdep.h $(INC_DIR)/ml-base.h \
41 :     $(INC_DIR)/ml-values.h \
42 :     $(CLIB_DIR)/ml-c.h cfun-proto-list.h cfun-list.h $(C_CFUNS)
43 :     $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(LOCAL_INCLUDES) -c c-calls-lib.c
44 :    
45 :     c-entry.o: c-entry.asm c-calls.h
46 :     $(CPP) -D_ASM_ $(DEFS) $(INCLUDES) c-entry.asm > c-entry.s
47 :     $(AS) -o c-entry.o c-entry.s
48 :    
49 :     .c.o: $(INC_DIR)/ml-osdep.h $(INC_DIR)/ml-base.h $(INC_DIR)/ml-values.h \
50 :     $(CLIB_DIR)/ml-c.h \
51 :     $(INC_DIR)/cache-flush.h \
52 :     c-calls.h \
53 :     cfun-proto-list.h cfun-list.h
54 :     $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(LOCAL_INCLUDES) -c $<
55 :    
56 :     clean :
57 :     rm -f v-* *.o *.s $(LIBRARY)
58 :    

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