#
# Application Makefile   
#
CFLAGS  = -3 -mf -w5 -b -g
LDFLAGS = -3 -mf -b -g -T 1 -l photon3r -l phcontrib -l phexlib -l phrtlib -l Aplib3r 
SDFLAGS = -3 -mf -b -g -T 1 -l photon_s -l phcontrib -l phexlib -l phrtlib -l Aplib3r 

include	abOfiles
MYOBJ	= test.o do.o ao.o di.o ai.o fi.o

include	abSfiles
MYSRC	= test.c do.c ao.c di.c ai.c fi.c

include	abHfiles
MYHDR	= test.h

#
# Application Program
#

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

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

#
# Headers
#

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

#
# Prototype Generation
#

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