-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
90 lines (76 loc) · 1.99 KB
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Makefile for MUMPS for OSX, Solaris and linux (uses gnumake)
# see BSDmakefile for the various BSDs
# Copyright (c) Raymond Douglas Newman, 1999 - 2018
# with help from Sam Habiel
CC = gcc
LIBS = -lm -lcrypt
EXTRA = -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64
ifeq ($(MAKECMDGOALS),test)
EXTRA = -O0 -g -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64
endif
ifeq ($(findstring solaris,$(OSTYPE)),solaris)
LIBS = -lcrypt -lnsl -lsocket -lm
endif
ifeq ($(OSTYPE),darwin)
LIBS = -lm -framework CoreServices -framework DirectoryService -framework Security
EXTRA += -Wno-deprecated-declarations
endif
SUBDIRS=compile database init runtime seqio symbol util xcall
RM=rm -f
PROG = mumps
OBJS = compile/dollar.o \
compile/eval.o \
compile/localvar.o \
compile/parse.o \
compile/routine.o \
database/db_buffer.o \
database/db_daemon.o \
database/db_get.o \
database/db_ic.o \
database/db_kill.o \
database/db_locate.o \
database/db_main.o \
database/db_rekey.o \
database/db_set.o \
database/db_uci.o \
database/db_util.o \
database/db_view.o \
init/init_create.o \
init/init_run.o \
init/init_start.o \
init/mumps.o \
runtime/runtime_attn.o \
runtime/runtime_buildmvar.o \
runtime/runtime_debug.o \
runtime/runtime_func.o \
runtime/runtime_math.o \
runtime/runtime_pattern.o \
runtime/runtime_run.o \
runtime/runtime_ssvn.o \
runtime/runtime_util.o \
runtime/runtime_vars.o \
seqio/SQ_Util.o \
seqio/SQ_Signal.o \
seqio/SQ_Device.o \
seqio/SQ_File.o \
seqio/SQ_Pipe.o \
seqio/SQ_Seqio.o \
seqio/SQ_Socket.o \
seqio/SQ_Tcpip.o \
symbol/symbol_new.o \
symbol/symbol_util.o \
util/util_key.o \
util/util_lock.o \
util/util_memory.o \
util/util_routine.o \
util/util_share.o \
util/util_strerror.o \
xcall/xcall.o
.c.o:
${CC} ${EXTRA} -c $< -o $@
all: ${OBJS}
${CC} ${EXTRA} -o ${PROG} ${OBJS} ${LIBS}
test: ${OBJS}
${CC} ${EXTRA} -o ${PROG} ${OBJS} ${LIBS}
clean:
rm -f ${OBJS} ${PROG} ${PROG}.core