QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Help Compiling NJ's EMUS

This is a discussion on Help Compiling NJ's EMUS within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I tried to compile NJ's emus using the make file in his source and i get: Making object tree.... The ...

Reply
 
LinkBack Thread Tools
Old 12-17-2006, 12:11 AM   #1
 
Join Date: Jun 2005
Posts: 20
Trader Feedback: 0
Default Help Compiling NJ's EMUS

I tried to compile NJ's emus using the make file in his source and i get:

Making object tree....
The syntax of the command is incorrect.
make: *** [obj_cps2/common] Error 1

when I return to where the source is located, I find an obj_cps2 folder and a -p folder but are all empty.

Is that something wrong in his make file or is it on my end?

#EDIT:
After going to the section in the makefile i changed his forward slashes to backslashes i was getting a message about: directory or filename -p already exists error
I kept typing make as it went through all the directories and then it took me to a new error:
Making object tree...
Compiling src/emumain.c...
psp-gcc: no input files
make: *** [obj_cps2/emumain.o]

so i dont know whats going on now.

Last edited by N3oGhoZt; 12-17-2006 at 01:17 AM..
N3oGhoZt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-17-2006, 09:11 AM   #2

Developer
 
yaustar's Avatar
 
Join Date: Jun 2006
Location: UK
Posts: 2,317
Trader Feedback: 0
Default

Sounds like it is trying to compile a file that doesn't exist.
yaustar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-17-2006, 11:02 AM   #3
 
mstrhelix's Avatar
 
Join Date: Dec 2005
Location: Dark_Alex Command Center
Posts: 597
Trader Feedback: 0
Default

post what you have in your makefile and what version of NJ's emu source you are trying to compile
__________________
[FONT=Fixedsys][spoiler="PSP DAX_Hacks"]PSP1001 3.71-M33-4 ------------------------------------------
- 17 Diff Castlevania Games on 4Gb Stick Cps2psp2.30 - MVSpsp[/FONT][FONT=Fixedsys]2.30[/FONT][FONT=Fixedsys] + Bootlegs - gpSP09 - PsUltraRip - Manhunt2 Uncensored
[/spoiler] [/FONT][FONT=Fixedsys]Consoles Pwnd: PSP, Xbox360
Pwnd: PSP, PSOne, PS2, Xbox360
[/FONT]
mstrhelix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-17-2006, 06:15 PM   #4
 
Join Date: Jun 2005
Posts: 20
Trader Feedback: 0
Default

Quote:
Originally Posted by mstrhelix
post what you have in your makefile and what version of NJ's emu source you are trying to compile
NJ updated his source between my post and today so I used his newest source now and still get to the same issue.

Again, I went in and changed out his / to \ where needed. Ran 'make' cmd over and over until it created the directory tree (because i kept getting an error stating the the dir -p already existed (this seemed to get me to some compiling but still the same end as above.

Nj's original Make file
Code:
#------------------------------------------------------------------------------
#
#               CPS1/CPS2/NEOGEO Emulator for PSP Makefile
#
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Configration
#------------------------------------------------------------------------------

#BUILD_CPS1PSP = 1
BUILD_CPS2PSP = 1
#BUILD_MVSPSP = 1

SAVE_STATE = 1
#KERNEL_MODE = 1
#SOUND_TEST = 1
RELEASE = 1


#------------------------------------------------------------------------------
# Defines
#------------------------------------------------------------------------------

VERSION_MAJOR = 1
VERSION_MINOR = 6
VERSION_BUILD = 3

ifdef BUILD_CPS1PSP
BUILD_CPS2PSP=
BUILD_MVSPSP=
SOUND_TEST=
TARGET = CPS1PSP
PSP_EBOOT_ICON = data/cps1.png
endif

ifdef BUILD_CPS2PSP
BUILD_MVSPSP=
SOUND_TEST=
TARGET = CPS2PSP
PSP_EBOOT_ICON = data/cps2.png
endif

ifdef BUILD_MVSPSP
VERSION_MAJOR = 1
VERSION_MINOR = 6
VERSION_BUILD = 3
TARGET = MVSPSP
PSP_EBOOT_ICON = data/mvs.png
endif

PBPNAME_STR = $(TARGET)

ifdef BUILD_MVSPSP
VERSION_STR = $(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_BUILD)[Final]
else
VERSION_STR = $(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_BUILD)
endif

PSP_EBOOT_TITLE = $(PBPNAME_STR) $(VERSION_STR)

EXTRA_TARGETS = mkdir EBOOT.PBP delelf
EXTRA_CLEAN = pspclean


#------------------------------------------------------------------------------
# Compiler Flags
#------------------------------------------------------------------------------

CFLAGS = -O3 -Wundef -Wunused


#------------------------------------------------------------------------------
# Compiler Defines
#------------------------------------------------------------------------------

CDEFS = -DINLINE='static __inline' \
	-Dinline=__inline \
	-D__inline__=__inline \
	-DBUILD_$(TARGET)=1 \
	-DPBPNAME_STR=\"$(PBPNAME_STR)\" \
	-DVERSION_STR=\"$(VERSION_STR)\" \
	-DVERSION_MAJOR=$(VERSION_MAJOR) \
	-DVERSION_MINOR=$(VERSION_MINOR) \
	-DVERSION_BUILD=$(VERSION_BUILD) \
	-DPSP

ifdef KERNEL_MODE
CDEFS += -DKERNEL_MODE=1
endif

ifdef SAVE_STATE
CDEFS += -DSAVE_STATE=1
endif

ifdef SOUND_TEST
CDEFS += -DSOUND_TEST=1
endif

ifdef RELEASE
CDEFS += -DRELEASE=1
else
CDEFS += -DRELEASE=0
endif

#------------------------------------------------------------------------------
# Object File Output Directtory
#------------------------------------------------------------------------------

ifdef BUILD_CPS1PSP
OBJ = obj_cps1
endif

ifdef BUILD_CPS2PSP
OBJ = obj_cps2
endif

ifdef BUILD_MVSPSP
OBJ = obj_mvs
endif


#------------------------------------------------------------------------------
# File include path
#------------------------------------------------------------------------------

INCDIR = \
	src \
	src/cpu/m68000 \
	src/cpu/z80 \
	src/zip \
	src/zlib

ifdef BUILD_CPS1PSP
INCDIR += src/cps1
endif

ifdef BUILD_CPS2PSP
INCDIR += src/cps2
endif

ifdef BUILD_MVSPSP
INCDIR += src/mvs
endif


#------------------------------------------------------------------------------
# Linker Flags
#------------------------------------------------------------------------------

LIBDIR =
LDFLAGS =


#------------------------------------------------------------------------------
# Library
#------------------------------------------------------------------------------

USE_PSPSDK_LIBC = 1

LIBS = -lm -lc -lpspaudio -lpspgu -lpsppower -lpsprtc


#------------------------------------------------------------------------------
# Object Directory
#------------------------------------------------------------------------------

OBJDIRS = \
	$(OBJ) \
	$(OBJ)/cpu \
	$(OBJ)/cpu/m68000 \
	$(OBJ)/cpu/z80 \
	$(OBJ)/common \
	$(OBJ)/sound \
	$(OBJ)/zip \
	$(OBJ)/zlib \
	$(OBJ)/psp \
	$(OBJ)/psp/font \
	$(OBJ)/psp/icon

ifdef BUILD_CPS1PSP
OBJDIRS += $(OBJ)/cps1
endif

ifdef BUILD_CPS2PSP
OBJDIRS += $(OBJ)/cps2
endif

ifdef BUILD_MVSPSP
OBJDIRS += $(OBJ)/mvs
endif

#------------------------------------------------------------------------------
# Object Files (common)
#------------------------------------------------------------------------------

MAINOBJS = \
	$(OBJ)/emumain.o \
	$(OBJ)/zip/zfile.o \
	$(OBJ)/zip/unzip.o \
	$(OBJ)/cpu/m68000/m68000.o \
	$(OBJ)/cpu/m68000/c68k.o \
	$(OBJ)/cpu/z80/z80.o \
	$(OBJ)/cpu/z80/cz80.o \
	$(OBJ)/sound/sndintrf.o \
	$(OBJ)/common/cache.o \
	$(OBJ)/common/loadrom.o

ifndef BUILD_MVSPSP
MAINOBJS  += $(OBJ)/common/coin.o
endif

ifdef SAVE_STATE
MAINOBJS += $(OBJ)/common/state.o
endif

ifdef SOUND_TEST
MAINOBJS += $(OBJ)/common/sndtest.o
endif


#------------------------------------------------------------------------------
# Object Files (CPS1PSP)
#------------------------------------------------------------------------------

ifdef BUILD_CPS1PSP

COREOBJS = \
	$(OBJ)/cps1/cps1.o \
	$(OBJ)/cps1/driver.o \
	$(OBJ)/cps1/memintrf.o \
	$(OBJ)/cps1/inptport.o \
	$(OBJ)/cps1/dipsw.o \
	$(OBJ)/cps1/timer.o \
	$(OBJ)/cps1/vidhrdw.o \
	$(OBJ)/cps1/sprite.o \
	$(OBJ)/cps1/eeprom.o \
	$(OBJ)/cps1/kabuki.o \
	$(OBJ)/sound/2151intf.o \
	$(OBJ)/sound/ym2151.o \
	$(OBJ)/sound/qsound.o

ICONOBJS = \
	$(OBJ)/psp/icon/cps_s.o \
	$(OBJ)/psp/icon/cps_l.o

endif


#------------------------------------------------------------------------------
# Object Files (CPS2PSP)
#------------------------------------------------------------------------------

ifdef BUILD_CPS2PSP

COREOBJS = \
	$(OBJ)/cps2/cps2.o \
	$(OBJ)/cps2/driver.o \
	$(OBJ)/cps2/memintrf.o \
	$(OBJ)/cps2/inptport.o \
	$(OBJ)/cps2/timer.o \
	$(OBJ)/cps2/vidhrdw.o \
	$(OBJ)/cps2/sprite.o \
	$(OBJ)/cps2/eeprom.o \
	$(OBJ)/sound/qsound.o

ICONOBJS = \
	$(OBJ)/psp/icon/cps_s.o \
	$(OBJ)/psp/icon/cps_l.o

endif


#------------------------------------------------------------------------------
# Object Files (MVSPSP)
#------------------------------------------------------------------------------

ifdef BUILD_MVSPSP

COREOBJS = \
	$(OBJ)/mvs/mvs.o \
	$(OBJ)/mvs/driver.o \
	$(OBJ)/mvs/memintrf.o \
	$(OBJ)/mvs/inptport.o \
	$(OBJ)/mvs/dipsw.o \
	$(OBJ)/mvs/timer.o \
	$(OBJ)/mvs/vidhrdw.o \
	$(OBJ)/mvs/sprite.o \
	$(OBJ)/mvs/pd4990a.o \
	$(OBJ)/mvs/biosmenu.o \
	$(OBJ)/sound/2610intf.o \
	$(OBJ)/sound/ym2610.o

ICONOBJS = \
	$(OBJ)/psp/icon/mvs_s.o \
	$(OBJ)/psp/icon/mvs_l.o

endif


#------------------------------------------------------------------------------
# Object Files (common)
#------------------------------------------------------------------------------

FONTOBJS = \
	$(OBJ)/psp/font/jpnfont.o \
	$(OBJ)/psp/font/graphic.o \
	$(OBJ)/psp/font/ascii_14p.o \
	$(OBJ)/psp/font/font_s.o \
	$(OBJ)/psp/font/bshadow.o

EXTOBJS = \
	$(OBJ)/psp/psp.o \
	$(OBJ)/psp/blend.o \
	$(OBJ)/psp/config.o \
	$(OBJ)/psp/filer.o \
	$(OBJ)/psp/help.o \
	$(OBJ)/psp/input.o \
	$(OBJ)/psp/menu.o \
	$(OBJ)/psp/mesbox.o \
	$(OBJ)/psp/misc.o \
	$(OBJ)/psp/ticker.o \
	$(OBJ)/psp/usrintrf.o \
	$(OBJ)/psp/video.o \
	$(OBJ)/psp/sound.o

ifdef BUILD_CPS1PSP
EXTOBJS += $(OBJ)/psp/png.o
else
EXTOBJS += $(OBJ)/psp/bmp.o
endif

EXTOBJS += $(FONTOBJS) $(ICONOBJS) $(ADHOCOBJS)

ZLIB = $(OBJ)/zlib.a

OBJS= $(MAINOBJS) $(COREOBJS) $(EXTOBJS) $(ZLIB)


#------------------------------------------------------------------------------
# Rules to make libraries
#------------------------------------------------------------------------------

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

$(OBJ)/zlib.a:  \
	$(OBJ)/zlib/adler32.o \
	$(OBJ)/zlib/compress.o \
	$(OBJ)/zlib/crc32.o \
	$(OBJ)/zlib/deflate.o \
	$(OBJ)/zlib/inflate.o \
	$(OBJ)/zlib/inftrees.o \
	$(OBJ)/zlib/inffast.o \
	$(OBJ)/zlib/trees.o \
	$(OBJ)/zlib/zutil.o

#---------------------------------------------------------------------
# Rules to manage files (CZ80)
#---------------------------------------------------------------------

Z80_SRC = \
	src/cpu/z80/cz80.c \
	src/cpu/z80/cz80_op.c \
	src/cpu/z80/cz80_opCB.c \
	src/cpu/z80/cz80_opED.c \
	src/cpu/z80/cz80_opXY.c  \
	src/cpu/z80/cz80_opXYCB.c

$(OBJ)/cpu/z80/cz80.o: $(Z80_SRC)
	@echo Compiling $<...
	@$(CC) $(CDEFS) $(CFLAGS) -c $< -o$@

#------------------------------------------------------------------------------
# Rules to manage files
#------------------------------------------------------------------------------

$(OBJ)/%.o: src/%.c
	@echo Compiling $<...
	@$(CC) $(CDEFS) $(CFLAGS) -c $< -o$@

$(OBJ)/%.o: src/%.S
	@echo Assembling $<...
	@$(CC) $(CDEFS) $(CFLAGS) -c $< -o$@

$(OBJ)/%.o: src/%.s
	@echo Assembling $<...
	@$(AS) $(ASDEFS) $(ASFLAGS) -c $< -o$@

$(OBJ)/%.a:
	@echo Archiving $@...
	@$(AR) -r $@ $^

$(sort $(OBJDIRS)):
	@mkdir -p $(subst //,\,$@)

pspclean:
	@echo Remove all object files and directories.
	@rm -rd $(OBJ)
	@rm -rf $(PSP_EBOOT_SFO)
	@rm -rf $(TARGET).elf

delelf:
	@rm -rf $(PSP_EBOOT_SFO)
	@rm -rf $(TARGET).elf

maketree:
	@echo Making object tree...

mkdir:	maketree $(sort $(OBJDIRS))
The changed one I did (total noob)
Code:
#------------------------------------------------------------------------------
#
#               CPS1/CPS2/NEOGEO Emulator for PSP Makefile
#
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Configration
#------------------------------------------------------------------------------

#BUILD_CPS1PSP = 1
BUILD_CPS2PSP = 1
#BUILD_MVSPSP = 1

SAVE_STATE = 1
#KERNEL_MODE = 1
#SOUND_TEST = 1
RELEASE = 1


#------------------------------------------------------------------------------
# Defines
#------------------------------------------------------------------------------

VERSION_MAJOR = 1
VERSION_MINOR = 6
VERSION_BUILD = 3

ifdef BUILD_CPS1PSP
BUILD_CPS2PSP=
BUILD_MVSPSP=
SOUND_TEST=
TARGET = CPS1PSP
PSP_EBOOT_ICON = data/cps1.png
endif

ifdef BUILD_CPS2PSP
BUILD_MVSPSP=
SOUND_TEST=
TARGET = CPS2PSP
PSP_EBOOT_ICON = data/cps2.png
endif

ifdef BUILD_MVSPSP
VERSION_MAJOR = 1
VERSION_MINOR = 6
VERSION_BUILD = 3
TARGET = MVSPSP
PSP_EBOOT_ICON = data/mvs.png
endif

PBPNAME_STR = $(TARGET)

ifdef BUILD_MVSPSP
VERSION_STR = $(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_BUILD)[Final]
else
VERSION_STR = $(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_BUILD)
endif

PSP_EBOOT_TITLE = $(PBPNAME_STR) $(VERSION_STR)

EXTRA_TARGETS = mkdir EBOOT.PBP delelf
EXTRA_CLEAN = pspclean


#------------------------------------------------------------------------------
# Compiler Flags
#------------------------------------------------------------------------------

CFLAGS = -O3 -Wundef -Wunused


#------------------------------------------------------------------------------
# Compiler Defines
#------------------------------------------------------------------------------

CDEFS = -DINLINE='static __inline' \
	-Dinline=__inline \
	-D__inline__=__inline \
	-DBUILD_$(TARGET)=1 \
	-DPBPNAME_STR=\"$(PBPNAME_STR)\" \
	-DVERSION_STR=\"$(VERSION_STR)\" \
	-DVERSION_MAJOR=$(VERSION_MAJOR) \
	-DVERSION_MINOR=$(VERSION_MINOR) \
	-DVERSION_BUILD=$(VERSION_BUILD) \
	-DPSP

ifdef KERNEL_MODE
CDEFS += -DKERNEL_MODE=1
endif

ifdef SAVE_STATE
CDEFS += -DSAVE_STATE=1
endif

ifdef SOUND_TEST
CDEFS += -DSOUND_TEST=1
endif

ifdef RELEASE
CDEFS += -DRELEASE=1
else
CDEFS += -DRELEASE=0
endif

#------------------------------------------------------------------------------
# Object File Output Directtory
#------------------------------------------------------------------------------

ifdef BUILD_CPS1PSP
OBJ = obj_cps1
endif

ifdef BUILD_CPS2PSP
OBJ = obj_cps2
endif

ifdef BUILD_MVSPSP
OBJ = obj_mvs
endif


#------------------------------------------------------------------------------
# File include path
#------------------------------------------------------------------------------

INCDIR = \
	src \
	src/cpu/m68000 \
	src/cpu/z80 \
	src/zip \
	src/zlib

ifdef BUILD_CPS1PSP
INCDIR += src/cps1
endif

ifdef BUILD_CPS2PSP
INCDIR += src/cps2
endif

ifdef BUILD_MVSPSP
INCDIR += src/mvs
endif


#------------------------------------------------------------------------------
# Linker Flags
#------------------------------------------------------------------------------

LIBDIR =
LDFLAGS =


#------------------------------------------------------------------------------
# Library
#------------------------------------------------------------------------------

USE_PSPSDK_LIBC = 1

LIBS = -lm -lc -lpspaudio -lpspgu -lpsppower -lpsprtc


#------------------------------------------------------------------------------
# Object Directory
#------------------------------------------------------------------------------

OBJDIRS = \
	$(OBJ) \
	$(OBJ)\cpu \
	$(OBJ)\cpu\m68000 \
	$(OBJ)\cpu\z80 \
	$(OBJ)\common \
	$(OBJ)\sound \
	$(OBJ)\zip \
	$(OBJ)\zlib \
	$(OBJ)\psp \
	$(OBJ)\psp\font \
	$(OBJ)\psp\icon

ifdef BUILD_CPS1PSP
OBJDIRS += $(OBJ)\cps1
endif

ifdef BUILD_CPS2PSP
OBJDIRS += $(OBJ)\cps2
endif

ifdef BUILD_MVSPSP
OBJDIRS += $(OBJ)\mvs
endif

#------------------------------------------------------------------------------
# Object Files (common)
#------------------------------------------------------------------------------

MAINOBJS = \
	$(OBJ)/emumain.o \
	$(OBJ)/zip/zfile.o \
	$(OBJ)/zip/unzip.o \
	$(OBJ)/cpu/m68000/m68000.o \
	$(OBJ)/cpu/m68000/c68k.o \
	$(OBJ)/cpu/z80/z80.o \
	$(OBJ)/cpu/z80/cz80.o \
	$(OBJ)/sound/sndintrf.o \
	$(OBJ)/common/cache.o \
	$(OBJ)/common/loadrom.o

ifndef BUILD_MVSPSP
MAINOBJS  += $(OBJ)/common/coin.o
endif

ifdef SAVE_STATE
MAINOBJS += $(OBJ)/common/state.o
endif

ifdef SOUND_TEST
MAINOBJS += $(OBJ)/common/sndtest.o
endif


#------------------------------------------------------------------------------
# Object Files (CPS1PSP)
#------------------------------------------------------------------------------

ifdef BUILD_CPS1PSP

COREOBJS = \
	$(OBJ)/cps1/cps1.o \
	$(OBJ)/cps1/driver.o \
	$(OBJ)/cps1/memintrf.o \
	$(OBJ)/cps1/inptport.o \
	$(OBJ)/cps1/dipsw.o \
	$(OBJ)/cps1/timer.o \
	$(OBJ)/cps1/vidhrdw.o \
	$(OBJ)/cps1/sprite.o \
	$(OBJ)/cps1/eeprom.o \
	$(OBJ)/cps1/kabuki.o \
	$(OBJ)/sound/2151intf.o \
	$(OBJ)/sound/ym2151.o \
	$(OBJ)/sound/qsound.o

ICONOBJS = \
	$(OBJ)/psp/icon/cps_s.o \
	$(OBJ)/psp/icon/cps_l.o

endif


#------------------------------------------------------------------------------
# Object Files (CPS2PSP)
#------------------------------------------------------------------------------

ifdef BUILD_CPS2PSP

COREOBJS = \
	$(OBJ)\cps2\cps2.o \
	$(OBJ)\cps2\driver.o \
	$(OBJ)\cps2\memintrf.o \
	$(OBJ)\cps2\inptport.o \
	$(OBJ)\cps2\timer.o \
	$(OBJ)\cps2\vidhrdw.o \
	$(OBJ)\cps2\sprite.o \
	$(OBJ)\cps2\eeprom.o \
	$(OBJ)\sound\qsound.o

ICONOBJS = \
	$(OBJ)\psp\icon\cps_s.o \
	$(OBJ)\psp\icon\cps_l.o

endif


#------------------------------------------------------------------------------
# Object Files (MVSPSP)
#------------------------------------------------------------------------------

ifdef BUILD_MVSPSP

COREOBJS = \
	$(OBJ)/mvs/mvs.o \
	$(OBJ)/mvs/driver.o \
	$(OBJ)/mvs/memintrf.o \
	$(OBJ)/mvs/inptport.o \
	$(OBJ)/mvs/dipsw.o \
	$(OBJ)/mvs/timer.o \
	$(OBJ)/mvs/vidhrdw.o \
	$(OBJ)/mvs/sprite.o \
	$(OBJ)/mvs/pd4990a.o \
	$(OBJ)/mvs/biosmenu.o \
	$(OBJ)/sound/2610intf.o \
	$(OBJ)/sound/ym2610.o

ICONOBJS = \
	$(OBJ)/psp/icon/mvs_s.o \
	$(OBJ)/psp/icon/mvs_l.o

endif


#------------------------------------------------------------------------------
# Object Files (common)
#------------------------------------------------------------------------------

FONTOBJS = \
	$(OBJ)/psp/font/jpnfont.o \
	$(OBJ)/psp/font/graphic.o \
	$(OBJ)/psp/font/ascii_14p.o \
	$(OBJ)/psp/font/font_s.o \
	$(OBJ)/psp/font/bshadow.o

EXTOBJS = \
	$(OBJ)/psp/psp.o \
	$(OBJ)/psp/blend.o \
	$(OBJ)/psp/config.o \
	$(OBJ)/psp/filer.o \
	$(OBJ)/psp/help.o \
	$(OBJ)/psp/input.o \
	$(OBJ)/psp/menu.o \
	$(OBJ)/psp/mesbox.o \
	$(OBJ)/psp/misc.o \
	$(OBJ)/psp/ticker.o \
	$(OBJ)/psp/usrintrf.o \
	$(OBJ)/psp/video.o \
	$(OBJ)/psp/sound.o

ifdef BUILD_CPS1PSP
EXTOBJS += $(OBJ)/psp/png.o
else
EXTOBJS += $(OBJ)/psp/bmp.o
endif

EXTOBJS += $(FONTOBJS) $(ICONOBJS) $(ADHOCOBJS)

ZLIB = $(OBJ)/zlib.a

OBJS= $(MAINOBJS) $(COREOBJS) $(EXTOBJS) $(ZLIB)


#------------------------------------------------------------------------------
# Rules to make libraries
#------------------------------------------------------------------------------

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

$(OBJ)/zlib.a:  \
	$(OBJ)/zlib/adler32.o \
	$(OBJ)/zlib/compress.o \
	$(OBJ)/zlib/crc32.o \
	$(OBJ)/zlib/deflate.o \
	$(OBJ)/zlib/inflate.o \
	$(OBJ)/zlib/inftrees.o \
	$(OBJ)/zlib/inffast.o \
	$(OBJ)/zlib/trees.o \
	$(OBJ)/zlib/zutil.o

#---------------------------------------------------------------------
# Rules to manage files (CZ80)
#---------------------------------------------------------------------

Z80_SRC = \
	src/cpu/z80/cz80.c \
	src/cpu/z80/cz80_op.c \
	src/cpu/z80/cz80_opCB.c \
	src/cpu/z80/cz80_opED.c \
	src/cpu/z80/cz80_opXY.c  \
	src/cpu/z80/cz80_opXYCB.c

$(OBJ)/cpu/z80/cz80.o: $(Z80_SRC)
	@echo Compiling $<...
	@$(CC) $(CDEFS) $(CFLAGS) -c $< -o$@

#------------------------------------------------------------------------------
# Rules to manage files
#------------------------------------------------------------------------------

$(OBJ)/%.o: src/%.c
	@echo Compiling $<...
	@$(CC) $(CDEFS) $(CFLAGS) -c $< -o$@

$(OBJ)/%.o: src/%.S
	@echo Assembling $<...
	@$(CC) $(CDEFS) $(CFLAGS) -c $< -o$@

$(OBJ)/%.o: src/%.s
	@echo Assembling $<...
	@$(AS) $(ASDEFS) $(ASFLAGS) -c $< -o$@

$(OBJ)/%.a:
	@echo Archiving $@...
	@$(AR) -r $@ $^

$(sort $(OBJDIRS)):
	@mkdir -p $(subst //,\,$@)

pspclean:
	@echo Remove all object files and directories.
	@rm -rd $(OBJ)
	@rm -rf $(PSP_EBOOT_SFO)
	@rm -rf $(TARGET).elf

delelf:
	@rm -rf $(PSP_EBOOT_SFO)
	@rm -rf $(TARGET).elf

maketree:
	@echo Making object tree...

mkdir:	maketree $(sort $(OBJDIRS))
Thats the edited make file. where it lists the emumain.o i tried to change the / to \ but it gave me another message:
Making object tree....
make: *** No rule to make target 'obj_cps2\emumain.o', needed by 'CPS2PSP.elf'. so when i switched back, i got past the making object tree and went into the error listed in the previous post.
N3oGhoZt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-17-2006, 06:22 PM   #5
 
Urza's Avatar
 
Join Date: Aug 2005
Posts: 4,540
Trader Feedback: 0
Default

http://theantimeta.net/Documents/nje...8_Compiled.rar

All 3 compiled by SamuraiX.
Urza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-17-2006, 06:23 PM   #6
 
ZereoX's Avatar
 
Join Date: Jan 2006
Posts: 871
Trader Feedback: 0
Default

Hey guys spare yourself the problem here SamuraiX from Dcemu Compile Three Emu (Cps1/2,MVS) Also there is Kernel and Usermode.

http://www.dcemu.co.uk/vbulletin/sho...t=46249&page=3

Urza the Tyrant Beat me at it
__________________
Free Prizes at [url=http://www.prizerebel.com/index.php?r=189687]Prizerebel[/url] Join us!
I already got [b]11[/b] Gifts. Ask me for details or proof.
ZereoX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-17-2006, 09:29 PM   #7
 
Join Date: Jun 2005
Posts: 20
Trader Feedback: 0
Default

Quote:
Originally Posted by Urza the Tyrant
Thanks for that but it doesn't change the fact that I did not succeed. The reason I want to learn how to get a successfull set of binaries is that I have an idea to add support for other cpus that run on similar hardware as mvs/cps2.

Thanks for the link as I will try to contact SamX now.

Perhaps there will be some news soon.
N3oGhoZt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-18-2006, 09:55 AM   #8
 
mstrhelix's Avatar
 
Join Date: Dec 2005
Location: Dark_Alex Command Center
Posts: 597
Trader Feedback: 0
Default

ok before you trie to compile you need to do a make clean, then type make.
also u must have your environmental variables set... .ie...

PSPDEV = c:\PSPDEV\
PSPSDK = C:\pspdev\psp\sdk

u can check these out by going to shell and typing set and search for both of these and post what they have in them currently....

ps.... i have been able to compile every version of NJ's emus.... yeah....
__________________
[FONT=Fixedsys][spoiler="PSP DAX_Hacks"]PSP1001 3.71-M33-4 ------------------------------------------
- 17 Diff Castlevania Games on 4Gb Stick Cps2psp2.30 - MVSpsp[/FONT][FONT=Fixedsys]2.30[/FONT][FONT=Fixedsys] + Bootlegs - gpSP09 - PsUltraRip - Manhunt2 Uncensored
[/spoiler] [/FONT][FONT=Fixedsys]Consoles Pwnd: PSP, Xbox360
Pwnd: PSP, PSOne, PS2, Xbox360
[/FONT]
mstrhelix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-20-2006, 01:55 PM   #9
 
Join Date: Jun 2005
Posts: 20
Trader Feedback: 0
Default

Quote:
Originally Posted by mstrhelix
ok before you trie to compile you need to do a make clean, then type make.
also u must have your environmental variables set... .ie...

PSPDEV = c:\PSPDEV\
PSPSDK = C:\pspdev\psp\sdk

u can check these out by going to shell and typing set and search for both of these and post what they have in them currently....

ps.... i have been able to compile every version of NJ's emus.... yeah....
I think something is wrong with my install or something because when I type set in the shell, I get a lot of information.

I also tried a make clean in NJ emu:
Remove all object files and directories.
make: rm: Command not found
make: *** [pspclean] Error 127

my start.bat file contains:
Code:
set path=%path%;G:\PSPDEV\bin;G:\MinGW\bin
set PSPSDK=G:\PSPDEV\psp\sdk
cmd
N3oGhoZt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-20-2006, 03:18 PM   #10

Give It All
 
Join Date: Jan 2006
Real First Name: Derek
Location: United States
Just Played: Burnout Paradise
Posts: 3,899
Blog Entries: 1
Trader Feedback: 0
Default

Quote:
Originally Posted by N3oGhoZt
I think something is wrong with my install or something because when I type set in the shell, I get a lot of information.

I also tried a make clean in NJ emu:
Remove all object files and directories.
make: rm: Command not found
make: *** [pspclean] Error 127

my start.bat file contains:
Code:
set path=%path%;G:\PSPDEV\bin;G:\MinGW\bin
set PSPSDK=G:\PSPDEV\psp\sdk
cmd

Oh, you are using MingW..

But still, I think your start.bat should be:

Code:
set PSPDEV=C:/pspdev
set PATH=%PATH%;%PSPDEV%/bin
cmd
That works fine for me with cygwin
__________________

Core 2 Duo E8400 @ 3.6ghz (Multiplier: 9x; Bus: 400mhz; FSB: 1600mhz;)
GeForce 9800 GTX+ 512 MB (Core: 850mhz; Memory: 1200mhz; Shader: 2100mhz;)
ASUS P5K Pro Motherboard
Patriot Extreme (2x2GB) / OCZ HPC (2x1GB)
6GB Total Dual Channel RAM (DDR2 1066mhz)
OCZ GameXstream 700w
2x Seagate 250GB HD (RAID0)
GmDude66 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-21-2006, 12:29 AM   #11
 
Join Date: Aug 2005
Posts: 4
Trader Feedback: 0
Default

No worries I got it working
ForceX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-21-2006, 12:53 AM   #12

Developer
 
jsharrad's Avatar
 
Join Date: Oct 2005
Real First Name: Justin
Location: Dubuque
Just Played: ..
Posts: 414
Trader Feedback: 0
Default

the makefile is made to work with unix / linux / cygwin utils, not windows commands so you have to change them to their windows equivalents before it will work.
__________________
PSP Demo Videos (updated 11/29/08)
MinerPSP Coder
jsharrad is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
compiling , emus

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 11:27 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us