]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bsddialog/examples_library/compile
libvmmapi: Move more amd64-specific ioctl wrappers to vmmapi_machdep.c
[FreeBSD/FreeBSD.git] / contrib / bsddialog / examples_library / compile
1 #!/bin/sh
2 #-
3 # SPDX-License-Identifier: CC0-1.0
4 #
5 # Written in 2021 by Alfonso Sabato Siciliano.
6 # To the extent possible under law, the author has dedicated all copyright
7 # and related and neighboring rights to this software to the public domain
8 # worldwide. This software is distributed without any warranty, see:
9 #     <http://creativecommons.org/publicdomain/zero/1.0/>.
10
11 libpath=../lib
12 examples="menu checklist radiolist mixedlist theme infobox yesno msgbox \
13         datebox form timebox rangebox pause calendar gauge mixedgauge"
14
15 rm -f $examples
16
17 for e in $examples
18 do
19         cc -g -Wall -Wextra -I$libpath ${e}.c -o $e -L$libpath -lbsddialog \
20         -Wl,-rpath=$libpath
21 done