-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (28 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ifeq ($(strip $(PVSNESLIB_HOME)),)
$(error "Please create an environment variable PVSNESLIB_HOME with path to its folder and restart application. (you can do it on windows with <setx PVSNESLIB_HOME "/c/snesdev">)")
endif
# BEFORE including snes_rules :
# list in AUDIOFILES all your .it files in the right order. It will build to generate soundbank file
AUDIODIR := res
export AUDIOFILES := $(foreach dir, $(AUDIODIR), \
$(dir)/*.it)
# then define the path to generate soundbank data. The name can be different but do not forget to update your include in .c file !
export SOUNDBANK := soundbank
include ${PVSNESLIB_HOME}/devkitsnes/snes_rules
.PHONY: bitmaps all
#---------------------------------------------------------------------------------
# ROMNAME is used in snes_rules file
export ROMNAME := logo
# to build musics, define SMCONVFLAGS with parameters you want
SMCONVFLAGS := -s -o $(SOUNDBANK) -V -b 5
musics: $(SOUNDBANK).obj
all: musics logo $(ROMNAME).sfc
cleanGfxLogo:
@echo clean Capcom graphics data
@rm -f res/*.pic res/*.pal res/*.map
clean: cleanBuildRes cleanRom cleanGfx cleanGfxLogo cleanAudio
#---------------------------------------------------------------------------------
logo.pic: res/logo.bmp
@echo convert font with no tile reduction ... $(notdir $@)
$(GFXCONV) -pc16 -n -gs8 -pe1 -fbmp $<
logo : logo.pic