92 lines
2.1 KiB
Makefile
92 lines
2.1 KiB
Makefile
|
#
|
||
|
# Makefile for the examples directory.
|
||
|
#
|
||
|
SHELL = /bin/sh
|
||
|
|
||
|
CC = @CC@
|
||
|
x = @PROG_EXT@
|
||
|
|
||
|
prefix = @prefix@
|
||
|
exec_prefix = @exec_prefix@
|
||
|
|
||
|
srcdir = @srcdir@
|
||
|
VPATH = $(srcdir)
|
||
|
|
||
|
LIBS = -lcdk @LIBS@
|
||
|
LIBDIR = -L.. @LDFLAGS@
|
||
|
|
||
|
CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
|
||
|
CPPFLAGS = @DEFS@ @CPPFLAGS@ -I../include -I$(srcdir)/../include
|
||
|
|
||
|
BINS = \
|
||
|
alphalist_ex$x \
|
||
|
bind_ex$x \
|
||
|
buttonbox_ex$x \
|
||
|
calendar_ex$x \
|
||
|
cdkscreen_ex$x \
|
||
|
dialog_ex$x \
|
||
|
entry_ex$x \
|
||
|
fselect_ex$x \
|
||
|
graph_ex$x \
|
||
|
hello_ex$x \
|
||
|
histogram_ex$x \
|
||
|
itemlist_ex$x \
|
||
|
label_ex$x \
|
||
|
marquee_ex$x \
|
||
|
matrix_ex$x \
|
||
|
mentry_ex$x \
|
||
|
menu_ex$x \
|
||
|
position_ex$x \
|
||
|
preprocess_ex$x \
|
||
|
radio_ex$x \
|
||
|
scale_ex$x \
|
||
|
scroll_ex$x \
|
||
|
selection_ex$x \
|
||
|
slider_ex$x \
|
||
|
subwindow_ex$x \
|
||
|
swindow_ex$x \
|
||
|
template_ex$x \
|
||
|
viewer_ex$x \
|
||
|
vinstall$x
|
||
|
|
||
|
LINKIT = @ECHO_LD@$(CC) $(CFLAGS) $(CPPFLAGS) $? -o $@ $(LIBDIR) $(LIBS)
|
||
|
|
||
|
all : $(BINS)
|
||
|
|
||
|
alphalist_ex$x : alphalist_ex.c ; $(LINKIT)
|
||
|
bind_ex$x : bind_ex.c ; $(LINKIT)
|
||
|
buttonbox_ex$x : buttonbox_ex.c ; $(LINKIT)
|
||
|
calendar_ex$x : calendar_ex.c ; $(LINKIT)
|
||
|
cdkscreen_ex$x : cdkscreen_ex.c ; $(LINKIT)
|
||
|
dialog_ex$x : dialog_ex.c ; $(LINKIT)
|
||
|
entry_ex$x : entry_ex.c ; $(LINKIT)
|
||
|
fselect_ex$x : fselect_ex.c ; $(LINKIT)
|
||
|
graph_ex$x : graph_ex.c ; $(LINKIT)
|
||
|
hello_ex$x : hello_ex.c ; $(LINKIT)
|
||
|
histogram_ex$x : histogram_ex.c ; $(LINKIT)
|
||
|
itemlist_ex$x : itemlist_ex.c ; $(LINKIT)
|
||
|
label_ex$x : label_ex.c ; $(LINKIT)
|
||
|
marquee_ex$x : marquee_ex.c ; $(LINKIT)
|
||
|
matrix_ex$x : matrix_ex.c ; $(LINKIT)
|
||
|
mentry_ex$x : mentry_ex.c ; $(LINKIT)
|
||
|
menu_ex$x : menu_ex.c ; $(LINKIT)
|
||
|
position_ex$x : position_ex.c ; $(LINKIT)
|
||
|
preprocess_ex$x : preprocess_ex.c ; $(LINKIT)
|
||
|
radio_ex$x : radio_ex.c ; $(LINKIT)
|
||
|
scale_ex$x : scale_ex.c ; $(LINKIT)
|
||
|
scroll_ex$x : scroll_ex.c ; $(LINKIT)
|
||
|
selection_ex$x : selection_ex.c ; $(LINKIT)
|
||
|
slider_ex$x : slider_ex.c ; $(LINKIT)
|
||
|
subwindow_ex$x : subwindow_ex.c ; $(LINKIT)
|
||
|
swindow_ex$x : swindow_ex.c ; $(LINKIT)
|
||
|
template_ex$x : template_ex.c ; $(LINKIT)
|
||
|
viewer_ex$x : viewer_ex.c ; $(LINKIT)
|
||
|
vinstall$x : vinstall.c ; $(LINKIT)
|
||
|
#
|
||
|
# Standard clean directives.
|
||
|
#
|
||
|
clean::
|
||
|
-rm -f core *.o $(BINS)
|
||
|
distclean:: clean
|
||
|
-rm -f Makefile
|