LOCAL_LDFLAGS = -L/usr/openwin/lib
LIBDIR		= $(OPENWINHOME)/lib
LEX		= lex
INCLUDES	= -I$(SSPKGHOME)/include -I$(OPENWINHOME)/include

SSPKGHOME	= ..
SSPKGLIB	= $(SSPKGHOME)/lib/libsspkg.a

DEPLIBS		= $(SSPKGLIB)
LOCAL_LIBRARIES	= $(SSPKGLIB) -lxview -lolgx -lX11
SYS_LIBRARIES	= -lm


AllTarget(example1 example2 example3 line_demo darea_demo puzzdemo tlstool treetool)

NormalProgramTarget(example1,example1.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)
NormalProgramTarget(example2,example2.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)
NormalProgramTarget(example3,example3.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)
NormalProgramTarget(line_demo,line_demo.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)
NormalProgramTarget(darea_demo,darea_demo.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)
NormalProgramTarget(puzzdemo,puzzdemo.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)
NormalProgramTarget(tlstool,tlstool.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)

lex.yy.c: treetool.l
	$(LEX) treetool.l

lex.yy.o: lex.yy.c
NormalProgramTarget(treetool,lex.yy.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)


example3.o: example3.c icons/smiley.icon icons/frown.icon icons/amper.icon

darea_demo.o: darea_demo.c icons/banana.icon icons/ban_mask.icon

puzzdemo.o: puzzdemo.c icons/puzzd.icon \
	icons/bullyicon.aa icons/bullyicon.ab icons/bullyicon.ac \
	icons/bullyicon.ad icons/bullyicon.ae icons/bullyicon.af

