4 -include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg
8 ifeq ($(ARCHDIR),native)
9 ASFLAGS += -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
10 LDFLAGS := -lacess-native
11 ifeq ($(PLATFORM),windows)
13 LDFLAGS += -Wl,-init,SoMain
17 CPPFLAGS := -ffreestanding
18 CFLAGS := -fno-stack-protector -fPIC
19 LDFLAGS := -I/Acess/Libs/ld-acess.so -lld-acess `$(CC) -print-libgcc-file-name`
21 CPPFLAGS += -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
22 CPPFLAGS += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/))
24 LDFLAGS += -g -nostdlib -shared -eSoMain -x --no-undefined -L$(OUTPUTDIR)Libs/