Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
31 user(s) are online (16 user(s) are browsing Forums)

Members: 0
Guests: 31

more...

Headlines

Report message:*
 

Re: Porting to AmigaOS4 thread

Subject: Re: Porting to AmigaOS4 thread
by jabirulo on 2021/4/2 11:10:55

@Raziel

cloned the github you posted.

Tweaked a bit the makefile and (a couple of sources) got a build, but it shows title screen and freezes there :-/ with a GR/crash on decode.c

Makefile I use:
#SDL_CFLAGS := `sdl2-config --cflags`
#SDL_LIBS   := `sdl2-config --libs`


CC := ppc-amigaos-gcc

OS 
:= $(shell uname)

ifeq ($(strip $(OS)),AmigaOS)
    
AMIGADATE = $(shell c:date LFORMAT %d.%m.%Y)
else
    
AMIGADATE = $(shell date +"%-d.%-m.%Y")
endif

INCS = -gstabs -ISDK:Local/newlib/include/SDL2 -D__AMIGADATE__="$(AMIGADATE)" -D__USE_INLINE__
SDL_CFLAGS 
+= $(INCS) -Wall -std=gnu99
SDL_LIBS 
= -athread=native -lmodplug -lSDL2 -lstdc++


BB := decode.c fileio.c game.c level.c objects.c resource.c screen.c sound.c staticres.c tiles.c unpack.c
JA 
:= game.c level.c resource.c screen.c sound.c staticres.c unpack.c

BB_SRCS 
:= $(foreach f,$(BB),bb/$f)
JA_SRCS := $(foreach f,$(JA),ja/$f)
SRCS := $(BB_SRCS) $(JA_SRCS)
OBJS := $(SRCS:.c=.o)
DEPS := $(SRCS:.c=.d)

CPPFLAGS := -Wall -Wpedantic -MMD $(SDL_CFLAGS) -I.

allblues bbja

blues
main.o sys_sdl2.o util.$(BB_SRCS:.c=.o)
    $(
CC) $(LDFLAGS) -$@ $^ $(SDL_LIBS)

bbjamain.o sys_sdl2.o util.$(JA_SRCS:.c=.o)
    $(
CC) $(LDFLAGS) -$@ $^ $(SDL_LIBS)

clean:
    
rm -$(OBJS) $(DEPS)

-include $(
DEPS)


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project