PageRenderTime 49ms CodeModel.GetById 42ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/libndsfpc/examples/input/keyboard/keyboard_async/Makefile.fpc

https://github.com/slibre/freepascal
Unknown | 46 lines | 38 code | 8 blank | 0 comment | 0 complexity | 81b4e1ddcf7b571c849b8187b5d9e1b7 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1#
 2#   Makefile.fpc for Free Pascal libndsfpc 2.x.y Examples
 3#
 4
 5[target]
 6loaders=
 7programs=keyboardAsync
 8
 9[require]
10packages=libndsfpc
11tools=bin2s mmutil grit
12nortl=y
13
14[install]
15fpcpackage=y
16
17[default]
18cpu=arm
19target=nds
20fpcdir=../../../../../..
21
22[clean]
23files=*.elf *.o *.s *.nds *.nef *.h *.bin \
24       $(BUILD)/*
25units=*
26
27[prerules]
28BUILD = build
29AUDIO_FILES = $(foreach dir,$(notdir $(wildcard audio/*.*)),$(CURDIR)/audio/$(dir))
30GFX_FILES = $(foreach dir,gfx,$(notdir $(wildcard $(dir)/*.png)))
31
32[rules]
33.NOTPARALLEL:
34all: direc fpc_all 
35direc:
36ifneq ($(BUILD), $(CURDIR))
37        $(MKDIR) $(BUILD)
38endif
39soundbank.bin.o : $(AUDIO_FILES)
40        @$(MMUTIL) $^ -d -o$(BUILD)/soundbank.bin -h$(BUILD)/soundbank.h
41        $(BIN2S) $(BUILD)/soundbank.bin > $(BUILD)/soundbank.bin.s
42        $(AS) -o $(BUILD)/soundbank.bin.o $(BUILD)/soundbank.bin.s
43
44$(GFX_FILES).o: 
45        $(GRIT) gfx/$(GFX_FILES) -fts -ff gfx/$(basename $(GFX_FILES)).grit -o$(BUILD)/$(GFX_FILES)
46        $(AS) -o $(BUILD)/$(basename $(GFX_FILES)).o $(BUILD)/$(basename $(GFX_FILES)).s