AcesNative+Usermode - libacessnative "works" (for some definitions)
[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  ifeq ($(PLATFORM),windows)
12  else
13   LDFLAGS += -Wl,-init,SoMain
14   CFLAGS += -fPIC
15  endif
16 else
17 CPPFLAGS := -ffreestanding
18 CFLAGS   := -fno-stack-protector -fPIC
19 LDFLAGS  := -I/Acess/Libs/ld-acess.so -lld-acess `$(CC) -print-libgcc-file-name`
20 endif
21 CPPFLAGS += -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
22 CPPFLAGS += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/))
23 CFLAGS += -Wall -g
24 LDFLAGS += -g -nostdlib -shared -eSoMain -x --no-undefined -L$(OUTPUTDIR)Libs/
25
26 # vim: ft=make

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