OpenLibm/Make.inc
Viral B. Shah d24a3296fa Revert the changes for inline. With both gcc 4.2 and 4.6, the link
fails with:

ld: duplicate symbol ___ieee754_rem_pio2 in src/s_sin.o and src/s_cos.o for architecture x86_64
collect2: ld returned 1 exit status
2012-01-01 10:14:06 +05:30

32 lines
636 B
PHP

CC=gcc
CFLAGS=-std=c99 -O2 -fPIC -I. -I../include -I../ld128 -I../src -D__BSD_VISIBLE -Wno-implicit-function-declaration
default: all
%.o: %.c
$(QUIET_CC)$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f *.o *~
# OS-specific stuff
ifeq ($(OS), Linux)
SHLIB_EXT = so
endif
ifeq ($(OS), Darwin)
SHLIB_EXT = dylib
endif
# Colors for make
CCCOLOR="\033[34m"
LINKCOLOR="\033[34;1m"
SRCCOLOR="\033[33m"
BINCOLOR="\033[37;1m"
MAKECOLOR="\033[32;1m"
ENDCOLOR="\033[0m"
QUIET_CC = @printf ' %b %b\n' $(CCCOLOR)CC$(ENDCOLOR) $(SRCCOLOR)$@$(ENDCOLOR);
QUIET_LINK = @printf ' %b %b\n' $(LINKCOLOR)LINK$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR);