mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 11:00:47 +00:00
5352c5ab27
byuu says: Changelog: - processor/upd96050: SGN should select between (A,B).S1 flag using ASL opcode bit - processor/upd96050: use a temporary to cache new S1, then compute OV1 using old S1, then assign new S1 - processor/upd96050: add SR.(siack,soack) and connect to relevant jump instructions (serial not implemented) - processor/upd96050: initialize SR properly in power() [r08 regression] - icarus: improve Makefile rules [Screwtape] - higan: new program icon - icarus: new program icon
66 lines
2.1 KiB
Makefile
66 lines
2.1 KiB
Makefile
build := release
|
|
include ../nall/GNUmakefile
|
|
include ../hiro/GNUmakefile
|
|
|
|
name := icarus
|
|
flags += -I..
|
|
link +=
|
|
|
|
ifeq ($(platform),windows)
|
|
link += -mwindows
|
|
endif
|
|
|
|
objects := obj/hiro.o
|
|
objects += obj/icarus.o
|
|
objects += $(if $(call streq,$(platform),windows),obj/resource.o)
|
|
|
|
all: $(objects)
|
|
$(strip $(compiler) -o out/$(name) $(objects) $(link) $(hirolink))
|
|
ifeq ($(platform),macosx)
|
|
@if [ -d out/$(name).app ]; then rm -r out/$(name).app; fi
|
|
mkdir -p out/$(name).app/Contents/MacOS/
|
|
mkdir -p out/$(name).app/Contents/Resources/
|
|
mv out/$(name) out/$(name).app/Contents/MacOS/$(name)
|
|
cp data/$(name).plist out/$(name).app/Contents/Info.plist
|
|
sips -s format icns data/$(name).png --out out/$(name).app/Contents/Resources/$(name).icns
|
|
endif
|
|
|
|
obj/hiro.o: ../hiro/hiro.cpp
|
|
$(compiler) $(hiroflags) -o obj/hiro.o -c ../hiro/hiro.cpp
|
|
|
|
obj/icarus.o: icarus.cpp $(call rwildcard,core/) $(call rwildcard,heuristics/) $(call rwildcard,ui/)
|
|
$(compiler) $(cppflags) $(flags) -o obj/icarus.o -c icarus.cpp
|
|
|
|
obj/resource.o:
|
|
$(windres) data/icarus.rc obj/resource.o
|
|
|
|
clean:
|
|
ifeq ($(platform),macosx)
|
|
@if [ -d out/$(name).app ]; then rm out/$(name).app; fi
|
|
endif
|
|
-@$(call delete,obj/*)
|
|
-@$(call delete,out/*)
|
|
|
|
install:
|
|
ifeq ($(platform),macosx)
|
|
cp -R out/$(name).app /Applications/$(name).app
|
|
else ifneq ($(filter $(platform),linux bsd),)
|
|
mkdir -p $(prefix)/bin/
|
|
mkdir -p $(prefix)/share/applications/
|
|
mkdir -p $(prefix)/share/icons/
|
|
mkdir -p $(prefix)/share/$(name)/Database/
|
|
if [ -f out/$(name) ]; then cp out/$(name) $(prefix)/bin/$(name); fi
|
|
cp -R Database/* $(prefix)/share/$(name)/Database/
|
|
cp data/$(name).desktop $(prefix)/share/applications/$(name).desktop
|
|
cp data/$(name).png $(prefix)/share/icons/$(name).png
|
|
endif
|
|
|
|
uninstall:
|
|
ifeq ($(platform),macosx)
|
|
if [ -d /Applications/$(name).app ]; then rm -r /Applications/$(name).app; fi
|
|
else ifneq ($(filter $(platform),linux bsd),)
|
|
if [ -f $(prefix)/bin/$(name) ]; then rm $(prefix)/bin/$(name); fi
|
|
if [ -f $(prefix)/share/applications/$(name).desktop ]; then rm $(prefix)/share/applications/$(name).desktop; fi
|
|
if [ -f $(prefix)/share/icons/$(name).png ]; then rm $(prefix)/share/icons/$(name).png; fi
|
|
endif
|