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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 249 - (view) (download)
Original Path: sml/branches/SMLNJ/src/runtime/c-libs/posix-sysdb/makefile

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 = libposix-sysdb.a
18 :    
19 :     VERSION = v-dummy
20 :    
21 :     OBJS = posix-sysdb-lib.o \
22 :     getgrgid.o \
23 :     getgrnam.o \
24 :     getpwuid.o \
25 :     getpwnam.o
26 :    
27 :     $(LIBRARY) : $(VERSION) $(OBJS)
28 :     rm -rf $(LIBRARY)
29 :     $(AR) $(ARFLAGS) $(LIBRARY) $(OBJS)
30 :     $(RANLIB) $(LIBRARY)
31 :    
32 :     $(VERSION) :
33 :     ($(MAKE) MAKE="$(MAKE)" clean)
34 :     echo "$(VERSION)" > $(VERSION)
35 :    
36 :     .c.o: $(INC_DIR)/ml-unixdep.h $(INC_DIR)/ml-base.h $(INC_DIR)/ml-values.h \
37 :     $(CLIB_DIR)/ml-c.h cfun-proto-list.h cfun-list.h
38 :     $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) -c $<
39 :    
40 :     clean :
41 :     rm -f v-* *.o $(LIBRARY)
42 :    

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