1 # Acess Dynamic Linker (ELF) Version 1
\r
5 -include ../Makefile.cfg
\r
7 COBJ = main.o lib.o loadlib.o elf.o pe.o
\r
11 CFLAGS = -Wall -fno-builtin -fleading-underscore -fno-stack-protector
\r
13 LDFLAGS = -T link.ld -Map map.txt -Bstatic
\r
21 $(RM) $(BIN) $(AOBJ) $(COBJ) ld-acess.dmp ld-acess.dsm link.txt map.txt
\r
23 $(BIN): $(AOBJ) $(COBJ)
\r
24 @echo --- $(LD) -shared -o $@
\r
25 @$(LD) $(LDFLAGS) -o $(BIN) $(AOBJ) $(COBJ) > link.txt
\r
26 $(OBJDUMP) -x $(BIN) > ld-acess.dmp
\r
27 $(OBJDUMP) -d $(BIN) > ld-acess.dsm
\r
28 cp $(BIN) $(DISTROOT)/Libs
\r
32 @$(CC) $(CFLAGS) -o $@ -c $<
\r
34 $(AOBJ): %.ao: %.asm
\r
36 @$(AS) $(ASFLAGS) -o $@ $<
\r