summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/pdbox.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/pdbox.make')
-rw-r--r--apps/plugins/pdbox/pdbox.make62
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
10PDBOXSRCDIR := $(APPSDIR)/plugins/pdbox
11PDBOXBUILDDIR := $(BUILDDIR)/apps/plugins/pdbox
12
13ROCKS += $(PDBOXBUILDDIR)/pdbox.rock
14
15PDBOXSRC := $(call preprocess, $(PDBOXSRCDIR)/SOURCES)
16PDBOXOBJ := $(call c2obj, $(PDBOXSRC))
17
18# add source files to OTHERSRC to get automatic dependencies
19OTHERSRC += $(PDBOXSRC)
20
21$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOXOBJ)
22
23PDBOXFLAGS = $(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
41PDBOXSRCDIR := $(APPSDIR)/plugins/pdbox
42PDBOXBUILDDIR := $(BUILDDIR)/apps/plugins/pdbox
43
44ROCKS += $(PDBOXBUILDDIR)/pdbox.rock
45
46PDBOXSRC := $(call preprocess, $(PDBOXSRCDIR)/SOURCES)
47PDBOXOBJ := $(call c2obj, $(PDBOXSRC))
48
49# add source files to OTHERSRC to get automatic dependencies
50OTHERSRC += $(PDBOXSRC)
51
52$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOXOBJ)
53
54PDBOXFLAGS = $(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 $@