Amiga vbcc support

I know this is not going to be a common issue, so if you could help myself fix this using the current tools. I am trying to create a cross compile tool chain to code for the Amiga. Using vbcc as the compiler.

I have created a makefile project with a compiler.yaml - files included.

The code compiles but the clion ide is unable to find any reference to any included types and files. At the start of main.c are the headers, all not found - and hence the containing types.

#include <intuition/intuition.h>
#include <proto/dos.h>
#include <proto/intuition.h>

Any help would be useful.

All files have been attached.

My compiler directory structure is as follows, with environment variable VBCC pointing to the base of this.
├── bin
├── NDK_3.2
│   ├── Include_H
│   ├── Include_I
│   ├── lib
└── targets
   ├── m68k-amigaos
   └── m68k-kick13

Upload id: 2026_09_24_QMsHRgt687RM1nLS2Qf1Hc (files: Makefile and 2 more)
Not everyone will see these files, so, Makefile:

VBCC ?= /home/stu/.local/share/vbcc
NDK_INC ?= $(VBCC)NDK_3.2/Include_H
CC = $(VBCC)bin/vc
CFLAGS = -c99 +kick13 -I$(NDK_INC) -I$(VBCC)targets/m68k-amigaos/include
LDFLAGS = -lamiga -lauto
SRCS = main.c
VPATH = $(NDK_INC)
.INCLUDE_DIRS = $(NDK_INC)Include_H $(VBCC)targets/m68k-amigaos/include

all:
    $(CC) $(CFLAGS) $(LDFLAGS) main.c -o build/window

clean:
    rm build/window


# vc +kick13 -c99 -I$NDK_INC -I$VBCC/targets/m68k-amigaos/include  main.c -lamiga -lauto -o window

and compiler.yaml:
compilers:
 - description: Amiga vbcc compiler
   match-sources: ".*\\.c"
   match-language: C
   match-compiler-exe: "(.*/)?vc(.exe)?"
   code-insight-target-name: m68k
   include-dirs:
     - "${compiler-exe-dir}/../targets/m68k-amigaos/include"
     - "${compiler-exe-dir}/../targets/m68k-kick13/include"
     - "${compiler-exe-dir}/../NDK_3.2/Include_H"
   defines:
     __VBCC__: ""
     __AMIGA__: ""
     AMIGA: ""
 

0

请先登录再写评论。