mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-04-02 10:42:14 -04:00
byuu says: Changelog: - fixed nall/windows/guard.hpp - fixed hiro/(windows,gtk)/header.hpp - fixed Famicom PPU OAM reads (mask the correct bits when writing) [hex_usr] - removed the need for (system := system) lines from higan/GNUmakefile - added "All" option to filetype dropdown for ROM loading - allows loading GBC games in SGB mode (and technically non-GB(C) games, which will obviously fail to do anything) - loki can load and play game folders now (command-line only) (extremely unimpressive; don't waste your time :P) - the input is extremely hacked in as a quick placeholder; not sure how I'm going to do mapping yet for it
62 lines
1.2 KiB
Makefile
62 lines
1.2 KiB
Makefile
include ../nall/GNUmakefile
|
|
|
|
target := tomoko
|
|
# target := loki
|
|
profile := accuracy
|
|
# console := true
|
|
|
|
flags += -I. -I.. -O3
|
|
objects := libco
|
|
|
|
# profile-guided optimization mode
|
|
# pgo := instrument
|
|
# pgo := optimize
|
|
|
|
ifeq ($(pgo),instrument)
|
|
flags += -fprofile-generate
|
|
link += -lgcov
|
|
else ifeq ($(pgo),optimize)
|
|
flags += -fprofile-use
|
|
endif
|
|
|
|
# platform
|
|
ifeq ($(platform),windows)
|
|
ifeq ($(console),true)
|
|
link += -mconsole
|
|
else
|
|
link += -mwindows
|
|
endif
|
|
link += -mthreads -luuid -lkernel32 -luser32 -lgdi32 -lcomctl32 -lcomdlg32 -lshell32
|
|
link += -Wl,-enable-auto-import
|
|
link += -Wl,-enable-runtime-pseudo-reloc
|
|
else ifeq ($(platform),macosx)
|
|
flags += -march=native
|
|
else ifneq ($(filter $(platform),linux bsd),)
|
|
flags += -march=native -fopenmp
|
|
link += -fopenmp
|
|
link += -Wl,-export-dynamic
|
|
link += -lX11 -lXext
|
|
else
|
|
$(error "unsupported platform")
|
|
endif
|
|
|
|
compile = \
|
|
$(strip \
|
|
$(if $(filter %.c,$<), \
|
|
$(compiler) $(cflags) $(flags) $1 -c $< -o $@, \
|
|
$(if $(filter %.cpp,$<), \
|
|
$(compiler) $(cppflags) $(flags) $1 -c $< -o $@ \
|
|
) \
|
|
) \
|
|
)
|
|
|
|
%.o: $<; $(call compile)
|
|
|
|
all: build;
|
|
|
|
ui := target-$(target)
|
|
include $(ui)/GNUmakefile
|
|
|
|
clean:
|
|
-@$(call delete,out/*)
|
|
-@$(call delete,obj/*)
|