View Single Post
Old 13 April 2020, 12:32   #4
ouya
Registered User
 
Join Date: Apr 2020
Location: Germany
Posts: 8
https://github.com/Zalewa/snekorama/...r/snek/amiga_c

is the code I want to compile and link.

System: MacOS Catalina, VsCode with VsCode-Amiga-Vbcc integration, Includes/Headers NDK3.9

I am using the Makefile ( adapted from https://github.com/prb28/vscode-amiga-vbcc-example )

CC=vc -c99
VASM=vasmm68k_mot
VLINK=vlink
LDFLAGS=-stdlib -noixemul -s
CONFIG=+aos68k
ODIR=build-vbcc

EXE=fs-uae/hd0/main
_OBJ = game.o main.o audio.o view.o list.o vec2.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))

# Prepare variables for target 'clean'
ifeq ($(OS),Windows_NT)
RM:=del
PATHSEP:=\\
CONFIG:=${CONFIG}_win
else
RM:=rm -f
PATHSEP:=/
endif

all: $(EXE)

$(EXE) : $(OBJ)
$(VLINK) -x -bamigahunk -Bstatic -Cvbcc -nostdlib -mrel $(VBCC)/targets/m68k-amigaos/lib/startup.o $(OBJ) -lauto -lamiga -L$(VBCC)/targets/m68k-amigaos/lib -lvc -o $(EXE)

$(ODIR)/%.o : %.c
$(CC) $(CONFIG) -g -c -o $@ $<

$(ODIR)/%.o : %.s
$(VASM) -m68000 -linedebug -o $@ $<

clean:
-$(RM) $(ODIR)$(PATHSEP)*.o
-$(RM) $(subst /,$(PATHSEP),$(EXE))

I noticed not only audio but also view are the files that when linked result in the described problem. The other object files work well and main() is called

Last edited by ouya; 13 April 2020 at 13:51.
ouya is offline  
 
Page generated in 0.05183 seconds with 11 queries