#
#       @(#)Makefile.customer	1.2
#
#	Makefile for the example programs for Olit programmers
#

DESTDIR =
INCLUDE =	-I${DESTDIR}/include

#
# If you want to compile for debugging, change "-O" to "-g"
#

DBGFLAG =	NOtDBG
UNIXOS =	NoSVR4_0
FONTFLAG =	tOLFONT
COLORFLAG =	NOtCOLOR
DEFINES =	-D$(DBGFLAG) -D$(UNIXOS) -D$(FONTFLAG) -D$(COLORFLAG)


CFLAGS =	${INCLUDE} -O $(DEFINES)

# if you want special to pass special loader options to ld, set
# LDFLAGS= ...
#

LIBS =		-L${DESTDIR}/lib \
		-lXol \
		-lXt \
		-lX11

SRCS =		\
		actions.c \
		bitmaps.c \
		command.c \
		flatChkbox.c \
		iconic.c \
		images.c \
		init.c \
		keybdTrav.c \
		list.c \
		menu.c \
		pictures.c \
		property.c \
		quit.c \
		sampler.c \
		scrolled.c \
		text.c \
		widgets.c

OBJS =		\
		actions.o \
		bitmaps.o \
		command.o \
		flatChkbox.o \
		iconic.o \
		images.o \
		init.o \
		keybdTrav.o \
		list.o \
		menu.o \
		pictures.o \
		property.o \
		quit.o \
		sampler.o \
		scrolled.o \
		text.o \
		widgets.o

ALL =		sampler

all:		${ALL}

$(ALL):		$(OBJS)
		$(RM) $@
		$(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS) $(LIBS)

clean:
		rm -f core ${ALL} *.o
