5
# We want to force 32-bit builds
17
cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
18
> /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
20
CFLAGS = -Os -Wall -I. -I../include -fomit-frame-pointer \
21
-fno-strict-aliasing -DSMALL_RELOC=$(SMALL_RELOC) \
22
-DLARGE_RELOC=$(LARGE_RELOC)
24
ifeq ($(call cc-option-yn, -fno-stack-protector),y)
25
CFLAGS += -fno-stack-protector
29
OSREV=$(shell uname -r)
31
ifeq (5.,$(findstring 5.,$(OSREV)))
35
MACHINE=$(subst sparc64,sparc,$(shell uname -m))
38
$(MAKE) -C ../common $*