1 include $(TOP)/config/make.cfg
3 DESTDIR := $(AROS_CONTRIB)/Demos/kdp
4 OBJECTDIR := $(DESTDIR)/objects
5 RAWDIR := $(DESTDIR)/raw
6 BMPDIR := $(DESTDIR)/bmp
8 BMPNAMES := brush1.bmp cir.bmp env.bmp test.bmp tv.bmp shade1.bmp shade2.bmp
9 RAWNAMES := tg-1.raw tg-2.raw tg.raw
10 OBJECTNAMES := cube.3d cube2.3d lwhead1.3d test.3d torus3.3d
12 BMPFILES := $(foreach f, $(BMPNAMES), $(BMPDIR)/$(f))
13 RAWFILES := $(foreach f, $(RAWNAMES), $(RAWDIR)/$(f))
14 OBJECTFILES := $(foreach f, $(OBJECTNAMES), $(OBJECTDIR)/$(f))
16 EXEFILES := $(foreach f, $(EXES), $(DESTDIR)/$(f))
23 #MM demo-kdp-motionblur \
25 #MM demo-kdp-scaletest \
32 #MM demo-kdp-files : demo-kdp-dirs
33 demo-kdp-files : $(BMPFILES) $(RAWFILES) $(OBJECTFILES)
36 %rule_makedirs dirs="$(OBJECTDIR) $(BMPDIR) $(RAWDIR)" \
37 setuptarget=demo-kdp-dirs
39 $(BMPDIR)/%.bmp : %.bmp
42 $(RAWDIR)/%.raw : %.raw
45 $(OBJECTDIR)/%.3d : objects/%.3d
49 %build_prog mmake=demo-kdp-bob \
50 progname=bob targetdir=$(DESTDIR) \
51 files="kdp kdpgfx bob"
53 %build_prog mmake=demo-kdp-bump \
54 progname=bump targetdir=$(DESTDIR) \
55 files="kdp kdpgfx bump"
57 %build_prog mmake=demo-kdp-grav \
58 progname=grav targetdir=$(DESTDIR) \
59 files="kdp kdpgfx grav"
61 %build_prog mmake=demo-kdp-grav2 \
62 progname=grav2 targetdir=$(DESTDIR) \
63 files="kdp kdpgfx grav2"
65 %build_prog mmake=demo-kdp-motionblur \
66 progname=motionblur targetdir=$(DESTDIR) \
67 files="kdp kdpgfx motionblur"
69 %build_prog mmake=demo-kdp-poly \
70 progname=poly targetdir=$(DESTDIR) \
71 files="kdp kdpgfx kdppoly poly"
73 %build_prog mmake=demo-kdp-scaletest \
74 progname=scaletest targetdir=$(DESTDIR) \
75 files="kdp kdpgfx scaletest"
77 %build_prog mmake=demo-kdp-tun \
78 progname=tun targetdir=$(DESTDIR) \
79 files="kdp kdpgfx tun"
81 %build_prog mmake=demo-kdp-tun2 \
82 progname=tun2 targetdir=$(DESTDIR) \
83 files="kdp kdpgfx tun2"
85 %build_prog mmake=demo-kdp-tv \
86 progname=tv targetdir=$(DESTDIR) \
89 %build_prog mmake=demo-kdp-wire \
90 progname=wire targetdir=$(DESTDIR) \
91 files="kdp kdpgfx wire"