#
# Application Makefile   
#
CFLAGS  = -3 -ms -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	= toast.o

include	abSfiles
MYSRC	= toast.c

include	abHfiles
MYHDR	= 

#
# Application Program
#

app:	$(ABOBJ) $(MYOBJ)
		$(LD) $(LDFLAGS) $(ABOBJ) $(MYOBJ) -M \
		-o toaster
		/usr/photon/appbuilder/appbind toaster

shr:	$(ABOBJ) $(MYOBJ)
		$(LD) $(SDFLAGS) $(ABOBJ) $(MYOBJ) -M \
		-o toaster
		/usr/photon/appbuilder/appbind toaster

#
# Headers
#

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

#
# Prototype Generation
#

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

toaster_init.o: globals.h
