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 (40 lines) | stat: -rw-r--r-- 709 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
39
40
#
# the makefile for the MP support library
#

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

VERSION =	v-dummy

LIB =		libmp.a

INC_DIR =	../include
INCLUDES =	-I$(INC_DIR)

#
# each version of the MP library has its own list of object files:
#
SGI_OBJS =	sgi-mp.o



$(LIB) :	$(VERSION) $(OBJS)
	rm -rf $(LIB)
	$(AR) $(ARFLAGS) $(LIB) $(OBJS)
	$(RANLIB) $(LIB)

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

sgi-mp.o:	sgi-mp.c \
		$(INC_DIR)/ml-base.h $(INC_DIR)/ml-limits.h \
		$(INC_DIR)/ml-values.h $(INC_DIR)/tags.h $(INC_DIR)/ml-mp.h \
		$(INC_DIR)/ml-state.h $(INC_DIR)/ml-globals.h
	$(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES) sgi-mp.c

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