]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/examples/Makefile
sound: Add an example of basic sound application
[FreeBSD/FreeBSD.git] / share / examples / Makefile
1 # $FreeBSD$
2 #
3 # Doing a make install builds /usr/share/examples
4
5 .include <src.opts.mk>
6
7 PACKAGE=examples
8 FILESDIR=       ${SHAREDIR}/examples
9
10 LDIRS=  BSD_daemon \
11         FreeBSD_version \
12         IPv6 \
13         bootforth \
14         csh \
15         diskless \
16         drivers \
17         etc \
18         find_interface \
19         ibcs2 \
20         indent \
21         ipfw \
22         jails \
23         kld \
24         libvgl \
25         mdoc \
26         netgraph \
27         perfmon \
28         ppi \
29         ppp \
30         printing \
31         ses \
32         scsi_target \
33         sound \
34         sunrpc \
35         ypldap
36
37
38 SE_DIRS+=       BSD_daemon
39 SE_BSD_DAEMON= \
40         FreeBSD.pfa \
41         README \
42         beastie.eps \
43         beastie.fig \
44         eps.patch \
45         poster.sh
46
47 .if ${MACHINE_CPUARCH} == "amd64"
48 .if ${MK_BHYVE} != "no"
49 LDIRS+=         bhyve
50 SE_DIRS+=       bhyve
51 SE_BHYVE=       vmrun.sh
52 PACKAGE_bhyve/vmrun.sh= bhyve
53 .endif
54 .endif
55
56 SE_DIRS+=       FreeBSD_version
57 SE_FREEBSD_VERSION= \
58         FreeBSD_version.c \
59         Makefile \
60         README
61
62 SE_DIRS+=       IPv6
63 SE_IPV6=        USAGE
64
65 SE_DIRS+=       bootforth
66 SE_BOOTFORTH= \
67         README \
68         boot.4th \
69         frames.4th \
70         loader.rc \
71         menu.4th \
72         menuconf.4th \
73         screen.4th
74
75 SE_DIRS+=       csh
76 SE_CSH= dot.cshrc
77
78 SE_DIRS+=       diskless
79 SE_DISKLESS= \
80         ME \
81         README.BOOTP \
82         README.TEMPLATING \
83         clone_root
84
85 SE_DIRS+=       drivers
86 SE_DRIVERS= \
87         README \
88         make_device_driver.sh \
89         make_pseudo_driver.sh
90
91 SE_DIRS+=       etc
92 SE_ETC= \
93         README.examples \
94         bsd-style-copyright \
95         make.conf
96
97 SE_DIRS+=       find_interface
98 SE_FIND_INTERFACE= \
99         Makefile \
100         README \
101         find_interface.c
102
103 SE_DIRS+=       ibcs2
104 SE_IBCS2=       \
105         README \
106         hello.uu
107
108 SE_DIRS+=       indent
109 SE_INDENT=      indent.pro
110
111 .if ${MK_IPFILTER} != "no"
112 SUBDIR+=        ipfilter
113 .endif
114
115 SE_DIRS+=       ipfw
116 SE_IPFW=        change_rules.sh
117
118 SE_DIRS+=       jails
119 SE_JAILS= \
120         README \
121         VIMAGE \
122         jail.xxx.conf \
123         jib \
124         jng \
125         rc.conf.jails \
126         rcjail.xxx.conf
127
128 SE_DIRS+=       kld
129 SE_KLD= Makefile
130
131 SE_DIRS+=       kld/cdev
132 SE_KLD_CDEV= \
133         Makefile \
134         README \
135
136 SE_DIRS+=       kld/cdev/module
137 SE_KLD_CDEV_MODULE= \
138         Makefile \
139         cdev.c \
140         cdev.h \
141         cdevmod.c
142
143 SE_DIRS+=       kld/cdev/test
144 SE_KLD_CDEV_TEST= \
145         Makefile \
146         testcdev.c
147
148 SE_DIRS+=       kld/dyn_sysctl
149 SE_KLD_DYN_SYSCTL= \
150         Makefile \
151         README \
152         dyn_sysctl.c
153
154 SE_DIRS+=       kld/firmware
155 SE_KLD_FIRMWARE= \
156         Makefile \
157         README
158
159 SE_DIRS+=       kld/firmware/fwconsumer
160 SE_KLD_FIRMWARE_FWCONSUMER= \
161         Makefile \
162         fw_consumer.c
163
164 SE_DIRS+=       kld/firmware/fwimage
165 SE_KLD_FIRMWARE_FWIMAGE= \
166         Makefile \
167         firmware.img.uu
168
169 SE_DIRS+=       kld/khelp
170 SE_KLD_KHELP= \
171         Makefile \
172         README \
173         h_example.c
174
175 SE_DIRS+=       kld/syscall
176 SE_KLD_SYSCALL= Makefile
177
178 SE_DIRS+=       kld/syscall/module
179 SE_KLD_SYSCALL_MODULE= \
180         Makefile \
181         syscall.c
182
183 SE_DIRS+=       kld/syscall/test
184 SE_KLD_SYSCALL_TEST= \
185         Makefile \
186         call.c
187
188 SE_DIRS+=       libvgl
189 SE_LIBVGL=      \
190         Makefile \
191         demo.c
192
193 SE_DIRS+=       mdoc
194 SE_MDOC= \
195         POSIX-copyright \
196         deshallify.sh \
197         example.1 \
198         example.3 \
199         example.4 \
200         example.9
201
202 SE_DIRS+=       netgraph
203 SE_NETGRAPH= \
204         ether.bridge \
205         frame_relay \
206         ngctl \
207         raw \
208         udp.tunnel \
209         virtual.chain \
210         virtual.lan \
211
212 SE_DIRS+=       perfmon
213 SE_PERFMON= \
214         Makefile \
215         README \
216         perfmon.c \
217
218 .if ${MK_PF} != "no"
219 SE_DIRS+=       pf
220 SE_PF= \
221         ackpri \
222         faq-example1 \
223         faq-example2 \
224         faq-example3 \
225         pf.conf \
226         queue1 \
227         queue2 \
228         queue3 \
229         queue4 \
230         spamd
231 .endif
232
233 SE_DIRS+=       ppi
234 SE_PPI= \
235         Makefile \
236         ppilcd.c
237
238 SE_DIRS+=       ppp
239 SE_PPP= \
240         chap-auth \
241         login-auth \
242         ppp.conf.sample \
243         ppp.conf.span-isp \
244         ppp.conf.span-isp.working \
245         ppp.linkdown.sample \
246         ppp.linkdown.span-isp \
247         ppp.linkdown.span-isp.working \
248         ppp.linkup.sample \
249         ppp.linkup.span-isp \
250         ppp.linkup.span-isp.working \
251         ppp.secret.sample \
252         ppp.secret.span-isp \
253         ppp.secret.span-isp.working
254
255 SE_DIRS+=       printing
256 SE_PRINTING= \
257         diablo-if-net \
258         hpdf \
259         hpif \
260         hpof \
261         hprf \
262         hpvf \
263         if-simple \
264         if-simpleX \
265         ifhp \
266         make-ps-header \
267         netprint \
268         psdf \
269         psdfX \
270         psif \
271         pstf \
272         pstfX
273
274 SE_DIRS+=       ses
275 SE_SES= \
276         Makefile \
277         Makefile.inc
278
279 SE_DIRS+=       ses/getencstat
280 SE_SES_GETENCSTAT= \
281         Makefile \
282         getencstat.0
283
284 SE_DIRS+=       ses/sesd
285 SE_SES_SESD= \
286         Makefile \
287         sesd.0
288
289 SE_DIRS+=       ses/setencstat
290 SE_SES_SETENCSTAT= \
291         Makefile \
292         setencstat.0
293
294 SE_DIRS+=       ses/setobjstat
295 SE_SES_SETOBJSTAT= \
296         Makefile \
297         setobjstat.0
298
299 SE_DIRS+=       ses/srcs
300 SE_SES_SRCS= \
301         chpmon.c \
302         eltsub.c \
303         eltsub.h \
304         getencstat.c \
305         getnobj.c \
306         getobjmap.c \
307         getobjstat.c \
308         inienc.c \
309         sesd.c \
310         setencstat.c \
311         setobjstat.c
312
313 SE_DIRS+=       scsi_target
314 SE_SCSI_TARGET= \
315         Makefile \
316         scsi_target.c \
317         scsi_target.h \
318         scsi_target.8 \
319         scsi_cmds.c
320
321 SE_DIRS+=       sound
322 SE_SOUND= \
323         basic.c \
324         ossinit.h \
325         README
326
327 SE_DIRS+=       sunrpc
328 SE_SUNRPC=      Makefile
329
330 SE_DIRS+=       sunrpc/dir
331 SE_SUNRPC_DIR= \
332         Makefile \
333         dir.x \
334         dir_proc.c \
335         rls.c
336
337 SE_DIRS+=       sunrpc/msg
338 SE_SUNRPC_MSG= \
339         Makefile \
340         msg.x \
341         msg_proc.c \
342         printmsg.c \
343         rprintmsg.c
344
345 SE_DIRS+=       sunrpc/sort
346 SE_SUNRPC_SORT= \
347         Makefile \
348         rsort.c \
349         sort.x \
350         sort_proc.c
351
352 .if ${MK_EFI} != "no"
353 LDIRS+=         uefisign
354 SE_DIRS+=       uefisign
355 SE_UEFISIGN=    uefikeys
356 .endif
357
358 SE_DIRS+=       ypldap
359 SE_YPLDAP=      ypldap.conf
360
361 .if ${MK_HAST} != "no"
362 LDIRS+=         hast
363 SE_DIRS+=       hast
364 SE_HAST=        ucarp.sh \
365         ucarp_down.sh \
366         ucarp_up.sh \
367         vip-down.sh \
368         vip-up.sh
369 .endif
370
371 .if ${MK_USB} != "no"
372 LDIRS+=         libusb20
373 SE_DIRS+=       libusb20
374 SE_LIBUSB20= \
375         Makefile \
376         README \
377         util.c \
378         util.h \
379         bulk.c \
380         control.c
381 .endif
382
383
384 # Setup the FILES_GROUPS for all DIRS variables above.
385 # The variables are prefixed by 'SE_' to prevent variable collision in
386 # other parts of the system
387 .for d in ${SE_DIRS}
388 .for f in ${SE_${d:tu:C/\//_/g}}
389 SER_${d:tu:C/\//_/g}+=  ${d}/${f}
390 .endfor
391 FILESGROUPS+=   SER_${d:tu:C/\//_/g}
392 SER_${d:tu:C/\//_/g}DIR+=       ${SHAREDIR}/examples/${d}
393 .endfor
394
395 BINDIR= ${SHAREDIR}/examples
396
397 beforeinstall: copies etc-examples
398 META_TARGETS+=  copies
399 .ORDER: etc-examples
400
401 copies:
402 .for i in ${LDIRS}
403         if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
404                 rm -f ${DESTDIR}${BINDIR}/$i; \
405         fi
406 .endfor
407
408 etc-examples:
409         ${_+_}(cd ${SRCTOP}/etc; ${MAKE} etc-examples)
410
411 SUBDIR+=        smbfs
412
413 HAS_TESTS=
414 SUBDIR.${MK_TESTS}+= tests
415
416 SUBDIR_PARALLEL=
417
418 .include <bsd.prog.mk>