| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | include ../src/Makefile.HostCC	= gccCFLAGS	= -Wall -O2 -std=c11 -fno-builtin -nostdlib -no-pie \	  -I../include/pal -I../lib.PHONY: defaultdefault: allinclude ../../Makefile.configsinclude ../../Makefile.rulesinclude ../src/Makefile.Testexecutables = HelloWorld File Failure Thread Fork Event Process Exception \	      Memory Pipe Tcp Udp Yield Broadcast Ipc Server Wait HandleSend \	      Select Segment Sleep Cpuid Piemanifests = manifesttarget = $(executables) $(manifests)graphene_lib = .lib/graphene-lib.apal_lib = ../../Runtime/libpal-$(PAL_HOST).so.PHONY: allall:	pal_loader $(call expand_target,$(target))ifeq ($(DEBUG),1)CC += -gendifexport DEBUGifeq ($(WERROR),1)CFLAGS += -Werrorendifpal_loader:	ln -sf ../../Runtime/pal_loadermanifest: manifest.template	cp -f $< $@%.manifest: %.manifest.template	cp -f $< $@ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)$(executables): %: %.c $(graphene_lib) $(pal_lib) ../src/user_start.o	@echo [ $@ ]	@$(CC) -MD -MP $(CFLAGS) $(if $(filter Pie,$@),-fPIC -pie,) $^ -o $@.lib/host_endian.h: ../src/host/$(PAL_HOST)/host_endian.h	@mkdir -p .lib	cp -f $< $@$(graphene_lib): .lib/host_endian.h	$(MAKE) -C ../lib target=$(abspath .lib)/ifeq ($(SGX), 1)include $(addsuffix .manifest.sgx.d,$(executables))endifelse.IGNORE: $(executables)$(executables):endif-include $(addsuffix .d, $(executables)) $(addsuffix .i.d, $(executables)) $(addsuffix .s.d, $(executables)).PHONY: cleanclean:	rm -rf pal_loader $(call expand_target,$(target)) .lib *.cached \	       $(addsuffix .d, $(executables)) $(addsuffix .i.d, $(executables)) \	       $(addsuffix .s.d, $(executables)) \	       $(addsuffix .manifest.sgx.d,$(executables))
 |