JJS wrote:I see nothing bad with having the folders in the path to the source files
Sorry, I didn't explain my point well I guess. Now it doesn't recognize the targets as they're written:
Code: Select all
%.o : %.c
.c.s:
$(CC) $(CFLAGS) -S $< -o $@
.S.o:
$(AS) $< -o $@
It throws that it doesn't know how to build target core/eloader.o for example. I might get back to old-style Makefile with all the targets, but I think this can be done cleaner with
JJS wrote:Also I would rather avoid further tools that would break building on the native Windows toolchain

I kind of both agree and not agree. I definitely want the build to be fully compatible with any OS. On the other side, the PSPSDK was developed in and for *IX systems, and make is also a *IX utility, so I don't see why I shouldn't use automake since it's also a standard for building on *IX.
JJS wrote:# use a different EXPFOLDER to make for different exploits
# Exploit-specific files go in the subfolders, see targets hbl and loader below
FOLDER=patapon2
EXPFOLDER=exploit/$(FOLDER)
Yes, I'm ok with that.
JJS wrote:don't know how difficult it would be to have a syntax simply like "make nonids everybody2"
I think it can be done. Maybe no that simple, but I'll try to check out on that.
I think wololo and ab5000 have more experience with make, hopefully they'll take a look around here (I guess wololo will be first anyways

)