Makefile revision 13136
1# Really quick and evil Makefile for building all the tests. I wish that bmake was friendlier to 2# the concept of multiple progs/libs in the same directory. 3# $Id$ 4 5PROGS= msg yesno prgbox gauge dselect fselect text menu1 menu2 menu3 \ 6 input1 check1 check2 check3 radio1 radio2 radio3 7 8CFLAGS+= -Wall -Wstrict-prototypes 9LDFLAGS += -ldialog -lncurses -lmytinfo 10 11all: ${PROGS} 12 13clean: 14 rm -f ${PROGS} 15 16msg: msg.c 17 ${CC} msg.c -o msg ${LDFLAGS} 18 19yesno: yesno.c 20 ${CC} yesno.c -o yesno ${LDFLAGS} 21 22prgbox: prgbox.c 23 ${CC} prgbox.c -o prgbox ${LDFLAGS} 24 25gauge: gauge.c 26 ${CC} gauge.c -o gauge ${LDFLAGS} 27 28dselect: dselect.c 29 ${CC} dselect.c -o dselect ${LDFLAGS} 30 31fselect: fselect.c 32 ${CC} fselect.c -o fselect ${LDFLAGS} 33 34text: text.c 35 ${CC} text.c -o text ${LDFLAGS} 36 37menu1: menu1.c 38 ${CC} menu1.c -o menu1 ${LDFLAGS} 39 40menu2: menu2.c 41 ${CC} menu2.c -o menu2 ${LDFLAGS} 42 43menu3: menu3.c 44 ${CC} menu3.c -o menu3 ${LDFLAGS} 45 46input1: input1.c 47 ${CC} input1.c -o input1 ${LDFLAGS} 48 49check1: check1.c 50 ${CC} check1.c -o check1 ${LDFLAGS} 51 52check2: check2.c 53 ${CC} check2.c -o check2 ${LDFLAGS} 54 55check3: check3.c 56 ${CC} check3.c -o check3 ${LDFLAGS} 57 58radio1: radio1.c 59 ${CC} radio1.c -o radio1 ${LDFLAGS} 60 61radio2: radio2.c 62 ${CC} radio2.c -o radio2 ${LDFLAGS} 63 64radio3: radio3.c 65 ${CC} radio3.c -o radio3 ${LDFLAGS} 66