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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (view) (download)

1 : monnier 249 #
2 :     # a template makefile for a C function library
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 = <<library archive>>
18 :    
19 :     VERSION = v-dummy
20 :    
21 :     OBJS = <<library object files>>
22 :    
23 :     $(LIBRARY) : $(VERSION) $(OBJS)
24 :     rm -rf $(LIBRARY)
25 :     $(AR) $(ARFLAGS) $(LIBRARY) $(OBJS)
26 :     $(RANLIB) $(LIBRARY)
27 :    
28 :     $(VERSION) :
29 :     ($(MAKE) MAKE="$(MAKE)" clean)
30 :     echo "$(VERSION)" > $(VERSION)
31 :    
32 :     .c.o: $(INC_DIR)/ml-unixdep.h $(INC_DIR)/ml-base.h $(INC_DIR)/ml-values.h \
33 :     $(CLIB_DIR)/ml-c.h cfun-proto-list.h cfun-list.h
34 :     $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) -c $<
35 :    
36 :     clean :
37 :     rm -f v-* *.o $(LIBRARY)
38 :    

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