1 # Setup for xseg Makefiles.
4 TARGET:=$(shell basename $(shell pwd))
12 export COPTS=-O2 -g -finline-functions $(MOPTS) $(DEBUG)
15 export CSTD=-std=gnu99 -pedantic
19 INC+=-I$(BASE)/peers/$(TARGET)
20 INC+=-I$(BASE)/sys/$(TARGET)
21 INC+=-I$(BASE)/drivers/$(TARGET)
24 export LIB=$(BASE)/lib/$(TARGET)
25 export CFLAGS=-Wall $(COPTS) $(CSTD)
28 export XSEG_HOME=$(shell ${XSEG_HOME})
47 exists=$(shell [ -f "$(CONFIG)" ] && echo exists)
48 ifeq (exists,$(exists))
51 $(shell $(XSEG_HOME)/envsetup show | sed -e 's/"//g' > "$(CONFIG)")
55 export XSEG_DOMAIN_TARGETS=$(shell $(XSEG_HOME)/tools/xseg-domain-targets | sed -e 's/^[^=]*=//;s/"//g')
56 export BASE=$(XSEG_HOME)