Code: | | | # # makefile p # 1. t@CTvfBNgRs[B # 2. fBNgB # }N GCC, SEGALIB, SEGASMP `B # 3. RtBM[Vt@C sample.cfg 쐬B # }N TARGET OBJS `B # 4. make sTvvO쐬B # # #t@Cg¢}N # CC bRpCwBis\`Lqj # CFLAGS bRpCIvVwB # AS AZuwBis\`Lqj # ASFLAGS AZuIvVwB # LDFLAGS JIvVwB # SATURN T^[pz[fBNgwB # GCC fmt fBNgwB # SEGASMP rakTv fBNgwB # SEGALIB rakCu fBNgwB # LOCATE_FILE ÍP[VLqt@CB # ENTRY_POINT TvvOsJnAhXwB # LIBS NCuwB # # iRtBM[Vt@C sample.cfg `j # TARGET TvvOּOwB # it@CvC}l[j # OBJS NIuWFNgt@CwB # 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. |