2 include $(TOP)/config/make.cfg
4 USER_CFLAGS := -DABIV1 -DMIN_OS_VERSION=39 $(BASE_CFLAGS) -DCATCOMP_NUMBERS -D__NOLIBBASE__ -DUSE_FLAC -DUSE_MPG123 -DUSE_VORBIS -DUSE_WAVPACK
5 USER_INCLUDES := -I$(SRCDIR)/$(CURDIR)/../include -I$(SRCDIR)/$(CURDIR)/../dms
6 USER_LDFLAGS := -static
8 TARGETDIR := $(AROS_DEVS)/DiskImage
10 #MM- workbench-devs-diskimage-plugins : \
11 #MM workbench-devs-diskimage-ccd \
12 #MM workbench-devs-diskimage-ciso \
13 #MM workbench-devs-diskimage-cpc \
14 #MM workbench-devs-diskimage-daa \
15 #MM workbench-devs-diskimage-dax \
16 #MM workbench-devs-diskimage-dmg \
17 #MM workbench-devs-diskimage-dms \
18 #MM workbench-devs-diskimage-gi \
19 #MM workbench-devs-diskimage-mds \
20 #MM workbench-devs-diskimage-nrg \
21 #MM workbench-devs-diskimage-uif
23 # CUE needs things from contrib
24 # #MM workbench-devs-diskimage-cue
26 # FID has GPL license, so we don't build it by default
27 # #MM workbench-devs-diskimage-fdi
29 #MM workbench-devs-diskimage-ccd : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
30 #MM workbench-devs-diskimage-cpc : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
31 #MM workbench-devs-diskimage-cue : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
32 #MM workbench-devs-diskimage-dms : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
33 #MM workbench-devs-diskimage-fdi : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
34 #MM workbench-devs-diskimage-gi : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
35 #MM workbench-devs-diskimage-mds : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
36 #MM workbench-devs-diskimage-nrg : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
37 #MM workbench-devs-diskimage-xad : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
38 #MM workbench-devs-diskimage-xpk : includes linklibs workbench-devs-diskimage-device workbench-devs-diskimage-support
40 #MM- workbench-devs-diskimage-plugins-quick : \
41 #MM workbench-devs-diskimage-ccd-quick \
42 #MM workbench-devs-diskimage-cpc-quick \
43 #MM workbench-devs-diskimage-dms-quick \
44 #MM workbench-devs-diskimage-gi-quick \
45 #MM workbench-devs-diskimage-mds-quick \
46 #MM workbench-devs-diskimage-nrg-quick
48 #MM- workbench-devs-diskimage-plugins-clean : \
49 #MM workbench-devs-diskimage-ccd-clean \
50 #MM workbench-devs-diskimage-cpc-clean \
51 #MM workbench-devs-diskimage-cue-clean \
52 #MM workbench-devs-diskimage-daa-clean \
53 #MM workbench-devs-diskimage-dax-clean \
54 #MM workbench-devs-diskimage-dmg-clean \
55 #MM workbench-devs-diskimage-dms-clean \
56 #MM workbench-devs-diskimage-fdi-clean \
57 #MM workbench-devs-diskimage-gi-clean \
58 #MM workbench-devs-diskimage-mds-clean \
59 #MM workbench-devs-diskimage-nrg-clean \
60 #MM workbench-devs-diskimage-uif-clean \
61 #MM workbench-devs-diskimage-xad-clean \
62 #MM workbench-devs-diskimage-xpk-clean
65 %build_prog mmake=workbench-devs-diskimage-ccd progname=CCD files="stub_aros ccd" \
66 targetdir=$(TARGETDIR) uselibs="diskimagesupport" usestartup=no
68 %build_prog mmake=workbench-devs-diskimage-ciso progname=CISO files="stub_aros ciso" \
69 targetdir=$(TARGETDIR) uselibs="diskimagesupport z" usestartup=no
71 %build_prog mmake=workbench-devs-diskimage-cpc progname=CPC files="stub_aros cpc" \
72 targetdir=$(TARGETDIR) uselibs="diskimagesupport" usestartup=no
74 CFILES := cue/cue cue/flac cue/wavpack audio/aiff audio/flac \
75 audio/mp3_mpg123 audio/vorbis audio/wave audio/wavpack cue/malloc \
76 cue/fdio cue/string cue/stdio cue/select
78 %build_prog mmake=workbench-devs-diskimage-cue progname=CUE files="stub_aros $(CFILES)" \
79 targetdir=$(TARGETDIR) uselibs="mpg123 FLAC wavpack vorbisfile vorbis ogg diskimagesupport" usestartup=no
81 %build_prog mmake=workbench-devs-diskimage-daa progname=DAA files="stub_aros daa" \
82 targetdir=$(TARGETDIR) uselibs="diskimagesupport z" usestartup=no
84 %build_prog mmake=workbench-devs-diskimage-dax progname=DAX files="stub_aros dax" \
85 targetdir=$(TARGETDIR) uselibs="diskimagesupport z" usestartup=no
87 CFILES := dmg/dmg dmg/base64 dmg/adc
89 %build_prog mmake=workbench-devs-diskimage-dmg progname=DMG files="stub_aros $(CFILES)" \
90 targetdir=$(TARGETDIR) uselibs="diskimagesupport z bz2 expat" usestartup=no
92 CFILES := ../dms/crc_csum ../dms/getbits ../dms/tables ../dms/maketbl ../dms/u_init \
93 ../dms/u_deep ../dms/u_heavy ../dms/u_medium ../dms/u_quick ../dms/u_rle
95 %build_prog mmake=workbench-devs-diskimage-dms progname=DMS files="stub_aros dms $(CFILES)" \
96 targetdir=$(TARGETDIR) uselibs="diskimagesupport" usestartup=no
98 %build_prog mmake=workbench-devs-diskimage-fdi progname=FDI files="stub_aros fdi/fdi fdi/fdi2raw" \
99 targetdir=$(TARGETDIR) uselibs="diskimagesupport" usestartup=no
101 %build_prog mmake=workbench-devs-diskimage-gi progname=GI files="stub_aros gi" \
102 targetdir=$(TARGETDIR) uselibs="diskimagesupport" usestartup=no
104 %build_prog mmake=workbench-devs-diskimage-mds progname=MDS files="stub_aros mds" \
105 targetdir=$(TARGETDIR) uselibs="diskimagesupport" usestartup=no
107 %build_prog mmake=workbench-devs-diskimage-nrg progname=NRG files="stub_aros nrg" \
108 targetdir=$(TARGETDIR) uselibs="diskimagesupport" usestartup=no
110 %build_prog mmake=workbench-devs-diskimage-uif progname=UIF files="stub_aros uif" \
111 targetdir=$(TARGETDIR) uselibs="diskimagesupport z" usestartup=no
113 %build_prog mmake=workbench-devs-diskimage-xad progname=XAD files="stub_aros xad" \
114 targetdir=$(TARGETDIR) uselibs="diskimagesupport" usestartup=no
116 %build_prog mmake=workbench-devs-diskimage-xpk progname=XPK files="stub_aros xpk" \
117 targetdir=$(TARGETDIR) uselibs="diskimagesupport" usestartup=no