-
Notifications
You must be signed in to change notification settings - Fork 110
/
graphics_files_rules.mk
34 lines (26 loc) · 1.02 KB
/
graphics_files_rules.mk
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
$(CLOBBER_SIZE_NCGR_FILES): GFX_FLAGS = -clobbersize
$(CLOBBER_SIZE_VERSION101_NCGR_FILES): GFX_FLAGS = -clobbersize -version101
$(VERSION101_SOPC_8BPP_NCGR_FILES): GFX_FLAGS = -version101 -sopc -bitdepth 8
$(VERSION101_SOPC_NCGR_FILES): GFX_FLAGS = -version101 -sopc
$(SCANNED_NCGR_FILES): GFX_FLAGS = -scanned
$(IR_NCLR_FILES): GFX_FLAGS = -ir
$(4BPP_NCLR_FILES): GFX_FLAGS = -bitdepth 4
$(8BPP_NSCR_FILES): GFX_FLAGS = -bitdepth 8
$(8BPP_COMP10_NOPAD_NCLR_PNG_FILES): GFX_FLAGS = -bitdepth 8 -nopad -comp 10
$(8BPP_NOPAD_NCLR_PNG_FILES): GFX_FLAGS = -bitdepth 8 -nopad
$(8BPP_COMP10_NOPAD_NCLR_PAL_FILES): GFX_FLAGS = -bitdepth 8 -nopad -comp 10
$(4BPP_NOPAD_PCMP_NCLR_FILES): GFX_FLAGS = -bitdepth 4 -nopad -pcmp
LZ_FLAGS := -l2 -s
$(PADDED_LZ_FILES): LZ_FLAGS += -A4
%.NCGR: %.png
$(GFX) $< $@ $(GFX_FLAGS)
%.NCLR: %.png
$(GFX) $< $@ $(GFX_FLAGS)
%.NCLR: %.pal
$(GFX) $< $@ $(GFX_FLAGS)
%.nbfc: %.png
$(GFX) $< $@ $(GFX_FLAGS)
%.nbfp: %.png
$(GFX) $< $@ $(GFX_FLAGS)
%.lz: %
$(NTRCOMP) $(LZ_FLAGS) -o $@ $<