xref: /freebsd/contrib/bsddialog/examples_library/compile (revision 19fae0f66023a97a9b464b3beeeabb2081f575b3)
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
11libpath=../lib
12examples="menu checklist radiolist mixedlist theme infobox yesno msgbox \
13	datebox form timebox rangebox pause calendar"
14
15rm -f $examples
16
17for e in $examples
18do
19	cc -g -Wall -Wextra -I$libpath ${e}.c -o $e -L$libpath -lbsddialog \
20	-Wl,-rpath=$libpath
21done
22