a4346eb96f84a4c6dda19867f17dd4cafdae5abf
[tpg/acess2.git] / Usermode / Libraries / Makefile.cfg
1 # Acess 2 Libraries
2 # General Makefile
3
4 -include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg
5
6 MAKEDEP  = $(CC) -M
7
8 ifeq ($(ARCHDIR),native)
9 ASFLAGS += -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
10 LDFLAGS := -lacess-native
11 #CPPFLAGS := -D SoMain="__attribute__ ((constructor(101))) libacessnative_init"
12  ifeq ($(PLATFORM),windows)
13  else
14   LDFLAGS += -Wl,-init,SoMain
15   CFLAGS += -fPIC
16  endif
17 else
18 CPPFLAGS := -ffreestanding
19 CFLAGS   := -fno-stack-protector -fPIC
20 LDFLAGS  := -I/Acess/Libs/ld-acess.so -lld-acess `$(CC) -print-libgcc-file-name`
21 endif
22 CPPFLAGS += -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
23 CPPFLAGS += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/))
24 CFLAGS += -Wall -g
25 LDFLAGS += -g -nostdlib -shared -eSoMain -x --no-undefined -L$(OUTPUTDIR)Libs/
26
27 # vim: ft=make

UCC git Repository :: git.ucc.asn.au