mrkotfw
Mid Boss
hi, its me again... well i tried to make my own kind of makefile because it seems as tough the makefile doesnt seem to work with SBL\SGL
this is the error:
i included i guess the right libraries.... but i still get no luck,
so then i decided to try to compile a already built make file in C:\SS\SATURN\SBL\SEGASMP\SGL\S_2_2
and it just told me:
if you guys can tell me where i should put my dirs, and what kind of makefile i can use so i can try to use SGL and SBL commands... thanks
Code:
#
# SEGA SATURN Graphic library make file for GNU
# macro
CC = gcc
LD = ld
RM = deltree
CONV = objcopy
# directory
SGLIDR = ../saturn/include
SGLLDR = ../saturn/lib
GCC = $(CC)
SEGASMP = ../saturn/lib
SEGALIB = ../saturn/lib
CMNDIR = ./
OBJECTS = ./objects
LIBS = ../saturn/lib/sega_sgl.a\
../saturn/lib/sega_per.a\
../saturn/lib/sega_gfs.a\
../saturn/lib/sega_snd.a\
../saturn/lib/sega_dbg.a\
../saturn/lib/sega_scl.a\
../saturn/lib/sega_spr.a\
../saturn/lib/sega_mth.a\
../saturn/lib/sega_int.a\
../saturn/lib/sega_cdc.a\
../saturn/lib/sega_dma.a\
../saturn/lib/sega_csh.a\
../saturn/lib/sega_adp.a
# option
CCFLAGS = -O2 -m2 -g -c -Wall -I$(SGLIDR) -I$(SEGALIB) -I$(SEGALIB) \
-L$(SGLIDR) -L$(SEGALIB) -L$(SEGALIB)
LDFLAGS = -m2 -I$(SGLIDR) -I$(SEGALIB) -I$(SEGALIB) -L$(SGLIDR) -L$(SEGALIB) -L$(SEGALIB) -Xlinker -T$(LDFILE) -Xlinker -Map \
-Xlinker $(MPFILE) -Xlinker -e -Xlinker ___Start -nostartfiles
DFLAGS =
# source_program
include $(OBJECTS)
TARGET = sl.coff
TARGET1 = sl.bin
LDFILE = $(CMNDIR)/$(TARGET:.coff=.lnk)
MPFILE = $(TARGET:.coff=.map)
MAKEFILE = Makefile
all: $(TARGET) $(TARGET1)
# Use gcc to link so it will automagically find correct libs directory
$(TARGET) : $(SYSOBJS) $(OBJS) $(MAKEFILE) $(OBJECTS) $(LDFILE)
$(CC) $(LDFLAGS) $(SYSOBJS) $(OBJS) $(LIBS) -o $@
$(TARGET1) : $(SYSOBJS) $(OBJS) $(MAKEFILE) $(LDFILE)
$(CONV) -O binary $(TARGET) $(TARGET1)
.SUFFIXES: .asm
.c.o:
$(CC) $< $(DFLAGS) $(CCFLAGS) -o $@
clean:
$(RM) $(OBJS) $(TARGET:.coff=.*)
this is the error:
Code:
C:\SS\EP>make
gcc -m2 -I../saturn/include -I../saturn/lib -I../saturn/lib -L../saturn/include
-L../saturn/lib -L../saturn/lib -Xlinker -T.//sl.lnk -Xlinker -Map -Xlinker sl.m
ap -Xlinker -e -Xlinker ___Start -nostartfiles .//cinit.o ../saturn/lib/sglarea.
o main.o -lsgl -o sl.coff
main.o: In function `Ep_Main':
main.c:11: undefined reference to `DBG_SetCursol'
main.c(.text+0x48): undefined reference to `DBG_Printf'
make.exe: *** [sl.coff] Error 1
i included i guess the right libraries.... but i still get no luck,
so then i decided to try to compile a already built make file in C:\SS\SATURN\SBL\SEGASMP\SGL\S_2_2
and it just told me:
Code:
C:\SS\SATURN\SBL\SEGASMP\SGL\S_2_2>make
gcc -T ../../../segasmp/lib/saturn.lnk -e START -nostartfiles -o main.cof -Xlin
ker -Map -Xlinker main.map ../../../segasmp/lib/strt1_g.o ../../../segasmp/lib/s
trt2_g.o ../../../segasmp/per/smpclib/per_x1.o ../../../segasmp/per/smpclib/per_
x2.o ../../../segasmp/per/smpclib/per_x3.o ../../../segasmp/v_blank/v_blank2.o .
./../../segasmp/v_blank/set_vb.o polygon.o main.o ../../../segalib/lib/sega_sgl.
a ../../../segalib/lib/sega_per.a ../../../segalib/lib/sega_sat.a ../../../segal
ib/lib/sega_scl.a ../../../segalib/lib/sega_cdc.a ../../../segalib/lib/sega_adp.
a
gcc.exe: ../../../segalib/lib/sega_per.a: file not found
gcc.exe: ../../../segalib/lib/sega_sat.a: file not found
gcc.exe: ../../../segalib/lib/sega_scl.a: file not found
gcc.exe: ../../../segalib/lib/sega_cdc.a: file not found
gcc.exe: ../../../segalib/lib/sega_adp.a: file not found
make.exe: *** [main.cof] Error 1
if you guys can tell me where i should put my dirs, and what kind of makefile i can use so i can try to use SGL and SBL commands... thanks

