mrkotfw
Mid Boss
Code:
#
#¡‚±‚à makefile ‚ט—pŽÃ¨ˆÃ¸‚«
# 1. ‚±‚Ãtƒ@ƒCƒ‹‚ðƒTƒ“ƒvƒ‹‚ÃfƒBƒŒƒNƒgƒŠ‚ÃRƒsÂ[‚µ‚‚¾‚³‚¢ÂB
# 2. ƒfƒBƒŒƒNƒgƒŠ‚ÃÂÒè‚ð’²Â®‚µ‚‚¾‚³‚¢ÂB
# ƒ}ƒNƒÂ GCC, SEGALIB, SEGASMP ‚ð’è‹`‚µ‚‚¾‚³‚¢ÂB
# 3. ƒRƒ“ƒtƒBƒMƒ…ƒŒÂ[ƒVƒ‡ƒ“ƒtƒ@ƒCƒ‹ sample.cfg ‚ðÂ쬂µ‚‚¾‚³‚¢ÂB
# ƒ}ƒNƒÂ TARGET ‚à OBJS ‚ð’è‹`‚µ‚‚¾‚³‚¢ÂB
# 4. make ‚ðŽÃÂs‚µ‚ÃTƒ“ƒvƒ‹ƒvƒÂƒOƒ‰ƒ€‚ðÂ쬂µ‚‚¾‚³‚¢ÂB
#
#
#¡‚±‚Ãtƒ@ƒCƒ‹‚Ã
Žg‚Âê‚¢‚éƒ}ƒNƒÂ‚ÃÂà –¾
# CC ‚bƒRƒ“ƒpƒCƒ‰‚ðŽw’肵‚Ââ¢ÂBÂiŽÃÂs‰Ã”\‚ÃŒ`‚Ã
‹LÂq‚µ‚‚¾‚³‚¢Âj
# CFLAGS ‚bƒRƒ“ƒpƒCƒ‰‚ÃIƒvƒVƒ‡ƒ“‚ðŽw’肵‚Ââ¢ÂB
# AS ƒAƒZƒ“ƒuƒ‰‚ðŽw’肵‚Ââ¢ÂBÂiŽÃÂs‰Ã”\‚ÃŒ`‚Ã
‹LÂq‚µ‚‚¾‚³‚¢Âj
# ASFLAGS ƒAƒZƒ“ƒuƒ‰‚ÃIƒvƒVƒ‡ƒ“‚ðŽw’肵‚Ââ¢ÂB
# LDFLAGS ƒŠƒ“ƒJ‚ÃIƒvƒVƒ‡ƒ“‚ðŽw’肵‚Ââ¢ÂB
# SATURN ƒTƒ^Â[ƒ“—p‚ÃzÂ[ƒ€ƒfƒBƒŒƒNƒgƒŠ‚ðŽw’肵‚Ââ¢ÂB
# GCC ‚f‚m‚t‚ ‚éƒfƒBƒŒƒNƒgƒŠ‚ðŽw’肵‚Ââ¢ÂB
# SEGASMP ‚r‚a‚k‚ÃTƒ“ƒvƒ‹‚ ‚éƒfƒBƒŒƒNƒgƒŠ‚ðŽw’肵‚Ââ¢ÂB
# SEGALIB ‚r‚a‚k‚ɃCƒuƒ‰ƒŠ‚ ‚éƒfƒBƒŒƒNƒgƒŠ‚ðŽw’肵‚Ââ¢ÂB
# LOCATE_FILE ƒÂƒ‚ƒŠ‚ÃPÂ[ƒVƒ‡ƒ“‚ð‹LÂq‚µ‚½ƒtƒ@ƒCƒ‹‚Ã
‚â¢ÂB
# ENTRY_POINT ƒTƒ“ƒvƒ‹ƒvƒÂƒOƒ‰ƒ€‚ÃŽÃÂsŠJŽnƒAƒhƒŒƒX‚ðŽw’肵‚Ââ¢ÂB
# LIBS ƒŠƒ“ƒN‚⢂郉ƒCƒuƒ‰ƒŠ‚ðŽw’肵‚Ââ¢ÂB
#
# ÂiƒRƒ“ƒtƒBƒMƒ…ƒŒÂ[ƒVƒ‡ƒ“ƒtƒ@ƒCƒ‹ sample.cfg ‚Ã’†‚Ã
’è‹`‚µ‚Ââ¢Âj
# TARGET ƒTƒ“ƒvƒ‹ƒvƒÂƒOƒ‰ƒ€‚Ö¼‘O‚ðŽw’肵‚Ââ¢ÂB
# Âiƒtƒ@ƒCƒ‹‚Ãvƒ‰ƒCƒ}ƒŠƒlÂ[ƒ€‚ÂÂè‚Ââ¢Âj
# OBJS ƒŠƒ“ƒN‚⢂éƒIƒuƒWƒFƒNƒgƒtƒ@ƒCƒ‹‚ðŽw’肵‚Ââ¢ÂB
#
CC = gcc
AS = gasm
CONV=objcopy
CFLAGS = -g -O0 -Wall -m2 -DMODEL_S -I$(GCC)/include -I$(SEGALIB)/include
ASFLAGS =
LDFLAGS = -T $(LOCATE_FILE) -e $(ENTRY_POINT) -nostartfiles
SATURN = ../../..
GCC = ../../../../gccsh
SEGASMP = ../../../..
SEGALIB = ./
LOCATE_FILE = ./saturn.lnk
ENTRY_POINT = START
CONFIG_FILE = sample.cfg
LIBS= $(SEGALIB)/lib/sega_sgl.a\
$(SEGALIB)/lib/sega_per.a\
$(SEGALIB)/lib/sega_sat.a\
$(SEGALIB)/lib/sega_cdc.a\
$(SEGALIB)/lib/sega_adp.a
include $(CONFIG_FILE)
.SUFFIXES:
.SUFFIXES: .cof .o .src .c
all: $(TARGET).cof
$(TARGET).cof: $(OBJS)
$(CC) $(LDFLAGS) $(_LDFLAGS) -o $(TARGET).cof -Xlinker -Map -Xlinker $(TARGET).map $(OBJS) $(LIBS)
$(CONV) -O binary XXX.bin
%.o: %.c
$(CC) -c $(CFLAGS) $(_CFLAGS) -o $@ $<
%.o: %.src
$(AS) $< $(ASFLAGS) $(_ASFLAGS) -o $@
clean:
del *.o
well before i go to sleep (with a headache) i'll post this, i have all the *.o and the *.h it asked me that is missing i pointed it to the correct location and it compiles... so when it does compile it creates a bad *.bin -- i dont know why it just doesnt load on girigiri!
here it is:
Code:
gcc -c -g -O0 -Wall -m2 -DMODEL_S -I../../../../gccsh/include -I.//include -I../
../../../per/smpclib -o sblsgl02.o sblsgl02.c
sblsgl02.c: In function `main':
sblsgl02.c:80: warning: unused variable `dummy_pad'
gcc -T ./saturn.lnk -e START -nostartfiles -o sblsgl02.cof -Xlinker -Map -Xlink
er sblsgl02.map ./lib/strt1_g.o ./lib/strt2_g.o ./lib/per_x1.o ./lib/per_x2.o ./
lib/per_x3.o ./v_blank/v_blank2.o ./v_blank/set_vb.o aki_ashi.o aki_dou.o aki_ka
o.o aki_kata.o aki_ude.o aki_walk.o scldata.o sblsgl02.o .//lib/sega_sgl.a .//li
b/sega_per.a .//lib/sega_sat.a .//lib/sega_cdc.a .//lib/sega_adp.a
objcopy -O binary penis.bin
c:/ss/saturn/bin/objcopy.exe: XXX.bin: No such file or directory
make.exe: *** [sblsgl02.cof] Error 1
the Sample.cfg:
Code:
TARGET = sblsgl02
OBJS= ./lib/strt1_g.o\
./lib/strt2_g.o\
./lib/per_x1.o\
./lib/per_x2.o\
./lib/per_x3.o\
./v_blank/v_blank2.o\
./v_blank/set_vb.o\
aki_ashi.o\
aki_dou.o\
aki_kao.o\
aki_kata.o\
aki_ude.o\
aki_walk.o\
scldata.o\
$(TARGET).o
_CFLAGS=-I$(SEGASMP)/per/smpclib
anyone? i have no idea what is wrong -- i wont be able to have much time soon because i am in school and school will be my first priority (unlike sophmore yr.) :flamethrower:
heh -- i am trying to make a few demos but SBL has Vblank and i think Hblank functions for me to work with, so i basicly need it -- SGL isnt enuf.