File: makefile

package info (click to toggle)
smlnj-runtime 110.44-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,968 kB
  • ctags: 5,368
  • sloc: ansic: 24,674; asm: 4,195; makefile: 1,353; sh: 91
file content (38 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# The makefile for the memory management library.  This get recursively
# invoked with the OBJS variable set to the appropriate value.
#

MAKE =		make
AR =		ar
ARFLAGS =	rcv
RANLIB =	ranlib

VERSION =	v-dummy

LIB =		libmem.a

MMAP_OBJS =	mem-mmap.o

MACH_OBJS =	mem-mach.o

BRK_OBJS =	mem-brk.o malloc.o

$(LIB) :	$(VERSION) $(OBJS)
	$(AR) $(ARFLAGS) $(LIB) $(OBJS)
	$(RANLIB) $(LIB)

$(VERSION) :
	($(MAKE) MAKE="$(MAKE)" clean)
	echo "$(VERSION)" > $(VERSION)

mem-mmap.o mem-mach.o mem-brk.o:	mem-common.ins

.o:	../include/ml-base.h ../include/ml-unixdep.h ../include/bibop.h

.c.o:
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) -c $<

clean :
	rm -f v-* *.o $(LIB)