diff options
Diffstat (limited to 'apps/plugins/pdbox/pdbox.make')
-rw-r--r-- | apps/plugins/pdbox/pdbox.make | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/pdbox.make b/apps/plugins/pdbox/pdbox.make new file mode 100644 index 0000000000..f1b1e7efef --- /dev/null +++ b/apps/plugins/pdbox/pdbox.make | |||
@@ -0,0 +1,62 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | PDBOXSRCDIR := $(APPSDIR)/plugins/pdbox | ||
11 | PDBOXBUILDDIR := $(BUILDDIR)/apps/plugins/pdbox | ||
12 | |||
13 | ROCKS += $(PDBOXBUILDDIR)/pdbox.rock | ||
14 | |||
15 | PDBOXSRC := $(call preprocess, $(PDBOXSRCDIR)/SOURCES) | ||
16 | PDBOXOBJ := $(call c2obj, $(PDBOXSRC)) | ||
17 | |||
18 | # add source files to OTHERSRC to get automatic dependencies | ||
19 | OTHERSRC += $(PDBOXSRC) | ||
20 | |||
21 | $(PDBOXBUILDDIR)/pdbox.rock: $(PDBOXOBJ) | ||
22 | |||
23 | PDBOXFLAGS = $(PLUGINFLAGS) \ | ||
24 | -DFIXEDPOINT -DSTATIC -DPD \ | ||
25 | -I$(PDBOXSRCDIR) -I$(PDBOXSRCDIR)/PDa/src \ | ||
26 | -DBMALLOC -I$(PDBOXSRCDIR)/dbestfit-3.3 | ||
27 | |||
28 | # Compile PDBox with extra flags (adapted from ZXBox) | ||
29 | $(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make | ||
30 | $(SILENT)mkdir -p $(dir $@) | ||
31 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@ | ||
32 | # __________ __ ___. | ||
33 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
34 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
35 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
36 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
37 | # \/ \/ \/ \/ \/ | ||
38 | # $Id$ | ||
39 | # | ||
40 | |||
41 | PDBOXSRCDIR := $(APPSDIR)/plugins/pdbox | ||
42 | PDBOXBUILDDIR := $(BUILDDIR)/apps/plugins/pdbox | ||
43 | |||
44 | ROCKS += $(PDBOXBUILDDIR)/pdbox.rock | ||
45 | |||
46 | PDBOXSRC := $(call preprocess, $(PDBOXSRCDIR)/SOURCES) | ||
47 | PDBOXOBJ := $(call c2obj, $(PDBOXSRC)) | ||
48 | |||
49 | # add source files to OTHERSRC to get automatic dependencies | ||
50 | OTHERSRC += $(PDBOXSRC) | ||
51 | |||
52 | $(PDBOXBUILDDIR)/pdbox.rock: $(PDBOXOBJ) | ||
53 | |||
54 | PDBOXFLAGS = $(PLUGINFLAGS) \ | ||
55 | -DFIXEDPOINT -DSTATIC -DPD \ | ||
56 | -I$(PDBOXSRCDIR) -I$(PDBOXSRCDIR)/PDa/src \ | ||
57 | -DBMALLOC -I$(PDBOXSRCDIR)/dbestfit-3.3 | ||
58 | |||
59 | # Compile PDBox with extra flags (adapted from ZXBox) | ||
60 | $(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make | ||
61 | $(SILENT)mkdir -p $(dir $@) | ||
62 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@ | ||