| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | # Rules.make for uClibc test apps.## Copyright (C) 2001 by Lineo, inc.###Note: This does not read the top level Rules.mak file#include $(TESTDIR)ConfigNATIVE_ARCH = $(shell uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \	-e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/')# If you are running a cross compiler, you may want to set this# to something more interesting...TESTCC = ../$(TESTDIR)extra/gcc-uClibc/$(NATIVE_ARCH)-uclibc-gccCC = gccSTRIPTOOL=strip# Check if 'ls -sh' works or notLSFLAGS = -l# turn all the warnings onWARNINGS=-Wall# use '-Os' optimization if available, else use -O2OPTIMIZATION = $(shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \    then echo "-Os"; else echo "-O2" ; fi)TEST_CFLAGS=$(WARNINGS) $(OPTIMIZATION) --uclibc-use-build-dir CFLAGS=$(WARNINGS) $(OPTIMIZATION)ifeq ($(DODEBUG),true)    CFLAGS +=-g    LDFLAGS =-Wl,-warn-common     STRIPTOOL =/bin/true -Since_we_are_debuggingelse    CFLAGS  +=-fomit-frame-pointer    LDFLAGS  =-s -Wl,-warn-common    STRIP    = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)endififneq ($(DODYNAMIC),true)    LDFLAGS +=--staticendif
 |