#
# Application Makefile   
#

CFLAGS  = -3 -mf -w5 -b -g 
LDFLAGS = -3 -mf -b -g -l photon3r -l phcontrib -l phexlib -l phrtlib -l Aplib3r 
SDFLAGS = -3 -mf -b -g -l photon_s -l phcontrib -l phexlib -l phrtlib -l Aplib3r 

include	abOfiles
MYOBJ	= init_trend.o list.o

include	abSfiles
MYSRC	=  init_trend.c list.c

include	abHfiles
MYHDR	= list.h

#
# Application Program
#

shr:	$(ABOBJ) $(MYOBJ)
		$(LD) $(SDFLAGS) $(ABOBJ) $(MYOBJ) -M \
		-o resmon
		usemsg resmon abmain.c
		/usr/photon/appbuilder/appbind resmon

app:	$(ABOBJ) $(MYOBJ)
		$(LD) $(LDFLAGS) $(ABOBJ) $(MYOBJ) -M \
		-o resmon
		usemsg resmon abmain.c
		/usr/photon/appbuilder/appbind resmon

#
# Headers
#

$(ABOBJ) $(MYOBJ):	$(MYHDR)

#
# Prototype Generation
#

proto:
		approto -p $(ABSRC) $(MYSRC) > proto.h
