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.win32
ViewVC logotype

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

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 :     # win32 specific
4 :    
5 :     SHELL =
6 :    
7 :     INC_DIR = ..\..\include
8 :     CLIB_DIR = ..\
9 :    
10 :     INCLUDES = /I$(INC_DIR) /I$(CLIB_DIR) /I..\..\objs
11 :    
12 :     MAKEFILE = makefile.win32
13 :     MAKE = nmake /F$(MAKEFILE)
14 :     AS = ml /Cx /Zd /Zi /Fr
15 :     AR = lib
16 :     ARFLAGS =
17 :     RANLIB = lib
18 :    
19 :     LIBRARY = libsmlnj-ccalls.lib
20 :    
21 :     VERSION = v-dummy
22 :    
23 :    
24 :    
25 :     OBJS = c-calls-lib.obj \
26 :     c-calls.obj \
27 :     c-calls-fns.obj \
28 :     c-entry.obj \
29 :     cutil.obj
30 :    
31 :     C_CFUNS = cutil-cfuns.h
32 :    
33 :     $(LIBRARY) : $(VERSION) $(OBJS)
34 :     del /F /Q $(LIBRARY)
35 :     $(AR) $(ARFLAGS) /out:$(LIBRARY) $(OBJS)
36 :     $(RANLIB) /out:$(LIBRARY)
37 :    
38 :     $(VERSION) :
39 :     ($(MAKE) MAKE="$(MAKE)" clean)
40 :     echo "$(VERSION)" > $(VERSION)
41 :    
42 :     DEPENDENTS = $(CLIB_DIR)\ml-c.h $(CLIB_DIR)\ml-c.h \
43 :     $(INC_DIR)\ml-osdep.h $(INC_DIR)\ml-base.h \
44 :     $(INC_DIR)\ml-values.h $(INC_DIR)\cache-flush.h \
45 :     c-calls.h \
46 :     cfun-proto-list.h cfun-list.h
47 :    
48 :     c-calls-lib.obj: $(INC_DIR)\ml-osdep.h $(DEPENDENTS) $(C_CFUNS)
49 :     $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(LOCAL_INCLUDES) /c c-calls-lib.c
50 :    
51 :     c-entry.obj: c-entry.asm c-calls.h
52 :     $(CPP) /D_ASM_ $(DEFS) $(INCLUDES) c-entry.asm > c-entry.s
53 :     $(AS) /c c-entry.s
54 :    
55 :     c-calls.obj: $(DEPENDENTS)
56 :     $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(LOCAL_INCLUDES) /c c-calls.c
57 :    
58 :     c-calls-fns.obj: $(DEPENDENTS)
59 :     $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(LOCAL_INCLUDES) /c c-calls-fns.c
60 :    
61 :     cutil.obj: $(DEPENDENTS)
62 :     $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(LOCAL_INCLUDES) /c cutil.c
63 :    
64 :     clean:
65 :     del /F /Q v-* *.obj *.pdb *.s $(LIBRARY)
66 :    

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