diff options
Diffstat (limited to 'examples/project.mk')
| -rw-r--r-- | examples/project.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/project.mk b/examples/project.mk new file mode 100644 index 0000000..5a72a80 --- /dev/null +++ b/examples/project.mk @@ -0,0 +1,18 @@ +# project.mk + +include ../../Makefile.cfg + +all: $(PROJNAME)_extra + mkdir -p cd_root + $(EXAMPLES_CC) $(EXAMPLES_CFLAGS) -DEXAMPLES_VMODE=$(EXAMPLES_VMODE) -o $(PROJNAME).elf $(PROJNAME).c \ + $(EXAMPLES_LIBS) $(PROJ_LIBS) $(EXAMPLES_LDFLAGS) + elf2exe $(PROJNAME).elf $(PROJNAME).exe + cp $(PROJNAME).exe cd_root + systemcnf $(PROJNAME).exe > cd_root/system.cnf + $(MKISOFS_COMMAND) -o $(PROJNAME).hsf -V $(PROJNAME) -sysid PLAYSTATION cd_root + mkpsxiso $(PROJNAME).hsf $(PROJNAME).bin $(CDLIC_FILE) + rm -f $(PROJNAME).hsf + +clean: $(PROJNAME)_clean_extra + rm -f $(PROJNAME).bin $(PROJNAME).cue $(PROJNAME).exe $(PROJNAME).elf + rm -fr cd_root |
