1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/math/ldouble/files/128-makefile-patch
Michael Johnson 170df9496f - Add support for atleast sparc64 and maybe other 64bit cpus
- Grab MAINTAINER on ldouble
2006-04-14 14:23:03 +00:00

28 lines
811 B
Plaintext

--- makefile.orig Fri Apr 14 09:22:25 2006
+++ makefile Fri Apr 14 09:27:49 2006
@@ -1,7 +1,7 @@
# Makefile for 128-bit long double precision calculator
# and test programs.
-CC= gcc
-CFLAGS = -msoft-quad-float -fno-builtin -g -O2 -Wall
+CC= %%CC%%
+CFLAGS = -msoft-quad-float -fno-builtin %%CFLAGS%%
#CFLAGS = -mhard-quad-float -fno-builtin -g -O2 -Wall
INCS= mconf.h
@@ -12,7 +12,13 @@
expx2ll.o floorll.o polevll.o constll.o mtherr.o
IEEOBJS= ieee.o econst.o
-all: lcalc mtstl lparanoi monotll libml.a
+SHARED_LIB= libml.so
+SHARED_LIB_VER= $(SHARED_LIB).0
+
+all: libml.a $(SHARED_LIB_VER)
+
+$(SHARED_LIB_VER): $(OBJS)
+ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHARED_LIB_VER) -o $(SHARED_LIB_VER) $(OBJS)
lcalc: lcalc.o $(OBJS) $(IEEOBJS) $(INCS)
$(CC) -v -o lcalc lcalc.o $(OBJS) $(IEEOBJS)