1 # Respect the environment
9 MARCH
=$(shell uname
-m
)
10 OSVER
=$(shell uname
-r
)
12 # amd64 is also known as x86_64
13 ifeq ($(MARCH
),x86_64
)
17 WARNINGS
= -Wall
-Wwrite-strings
20 CFLAGS
= $(WARNINGS
) $(DEBUG
)
23 ifeq ($(UNAME
),Darwin
)
24 LDOPT
=-dynamiclib
-undefined dynamic_lookup
29 SONAME
=-current_version
$(VERSION
) -compatibility_version
$(VERSION
) -install_name
$(PREFIX
)/lib
/librubinius-
$(VERSION
).
$(SUFFIX
)
30 SONAMELOCAL
=-current_version
$(VERSION
) -compatibility_version
$(VERSION
) -install_name
`pwd`/librubinius-local-dev.
$(SUFFIX
)
33 MACOSX_DEPLOYMENT_TARGET
=10.5
35 MACOSX_DEPLOYMENT_TARGET
=10.4
41 BIN_RPATH
=-Wl
,-rpath
-Wl
,/usr
/local
/lib
42 BIN_RPATHLOCAL
=-Wl
,-rpath
-Wl
,`pwd`/lib
44 SONAME
=-Wl
,-soname
,librubinius-
$(VERSION
).
$(SUFFIX
)
45 SONAMELOCAL
=-Wl
,-soname
,librubinius-local-dev.
$(SUFFIX
)
49 COMP
=@echo CC
$@
;$(CC
)
50 LINKER
=@echo LINK
$@
;$(CC
) $(LDOPT
)
53 RBXLIB
=librubinius-
$(VERSION
).
$(SUFFIX
)
54 RBXLIBLOCAL
=librubinius-local-dev.
$(SUFFIX
)