CFLAGS        = -I/usr/openware/include -Bstatic -D_NO_PROTO -DBSD -Dsparc -Dsun4 -O
#CFLAGS       = -I/usr/openware/include -Bdynamic -D_NO_PROTO -DBSD -Dsparc -Dsun4 -O

DEST	      = ${HOME}/bin

EXTHDRS	      = /usr/include/floatingpoint.h \
		/usr/include/limits.h \
		/usr/include/malloc.h \
		/usr/include/math.h \
		/usr/include/signal.h \
		/usr/include/stdio.h \
		/usr/include/stdlib.h \
		/usr/include/string.h \
		/usr/include/sys/ieeefp.h \
		/usr/include/sys/ipc.h \
		/usr/include/sys/limits.h \
		/usr/include/sys/sem.h \
		/usr/include/sys/signal.h \
		/usr/include/sys/stdtypes.h \
		/usr/include/sys/sysmacros.h \
		/usr/include/sys/types.h \
		/usr/include/varargs.h \
		/usr/include/vm/faultcode.h \
		/usr/include/wchar.h

HDRS	      = gavt_def.h \
		gavt_ifdef.h \
		gavtg_adwdef.h \
		gavtg_def.h \
		gavtg_fgwdef.h \
		gavtg_idgwdef.h \
		gavtg_iidwdef.h

LDFLAGS       = -L/usr/openware/lib -Bstatic
#LDFLAG	      = -L/usr/openware/lib -Bdynamic

LIBS	      =

XMLIBS	      = -lXm -lXt -lXim -lX11 -lm

LINKER	      = cc

MAKEFILE      = Makefile

OBJS	      = gavt_debug.o \
		gavt_def.o \
		gavt_error.o \
		gavt_main.o \
		gavt_utility.o \
		gavt_warning.o \
		gavtd_file.o \
		gavtd_gadatainf.o \
		gavtd_memory.o \
		gavtd_realtime.o \
		gavtg_adwbarchart.o \
		gavtg_adwcolor.o \
		gavtg_adwcostparam.o \
		gavtg_adwda.o \
		gavtg_adwdebug.o \
		gavtg_adwdef.o \
		gavtg_adwdialog.o \
		gavtg_adwdpmgr.o \
		gavtg_adwevent.o \
		gavtg_adwfile.o \
		gavtg_adwfont.o \
		gavtg_adwgc.o \
		gavtg_adwidentity.o \
		gavtg_adwmain.o \
		gavtg_adwmenu.o \
		gavtg_adwtest.o \
		gavtg_adwview.o \
		gavtg_buildmenu.o \
		gavtg_color.o \
		gavtg_debug.o \
		gavtg_def.o \
		gavtg_fgwda.o \
		gavtg_fgwdctrl.o \
		gavtg_fgwdebug.o \
		gavtg_fgwdef.o \
		gavtg_fgwdialog.o \
		gavtg_fgwdparam.o \
		gavtg_fgwevent.o \
		gavtg_fgwexpshr.o \
		gavtg_fgwfile.o \
		gavtg_fgwfont.o \
		gavtg_fgwgc.o \
		gavtg_fgwmain.o \
		gavtg_fgwmenu.o \
		gavtg_fgwpickgen.o \
		gavtg_fgwsignal.o \
		gavtg_fgwsim.o \
		gavtg_fgwtest.o \
		gavtg_fgwview.o \
		gavtg_font.o \
		gavtg_idgwbreadth.o \
		gavtg_idgwda.o \
		gavtg_idgwdebug.o \
		gavtg_idgwdef.o \
		gavtg_idgwdialog.o \
		gavtg_idgwdpmgr.o \
		gavtg_idgwevent.o \
		gavtg_idgwfile.o \
		gavtg_idgwfont.o \
		gavtg_idgwgc.o \
		gavtg_idgwmain.o \
		gavtg_idgwmenu.o \
		gavtg_idgwpickgf.o \
		gavtg_idgwtest.o \
		gavtg_idgwview.o \
		gavtg_iidwdef.o \
		gavtg_iidwdialog.o \
		gavtg_iidwfile.o \
		gavtg_iidwfont.o \
		gavtg_iidwmain.o \
		gavtg_iidwmenu.o \
		gavtg_iidwst.o \
		gavtg_iidwtest.o \
		gavtg_main.o \
		gavtg_warp.o

PRINT	      = pr

PROGRAM       = gavtool

SRCS	      = gavt_debug.c \
		gavt_def.c \
		gavt_error.c \
		gavt_main.c \
		gavt_utility.c \
		gavt_warning.c \
		gavtd_file.c \
		gavtd_gadatainf.c \
		gavtd_memory.c \
		gavtd_realtime.c \
		gavtg_adwbarchart.c \
		gavtg_adwcolor.c \
		gavtg_adwcostparam.c \
		gavtg_adwda.c \
		gavtg_adwdebug.c \
		gavtg_adwdef.c \
		gavtg_adwdialog.c \
		gavtg_adwdpmgr.c \
		gavtg_adwevent.c \
		gavtg_adwfile.c \
		gavtg_adwfont.c \
		gavtg_adwgc.c \
		gavtg_adwidentity.c \
		gavtg_adwmain.c \
		gavtg_adwmenu.c \
		gavtg_adwtest.c \
		gavtg_adwview.c \
		gavtg_buildmenu.c \
		gavtg_color.c \
		gavtg_debug.c \
		gavtg_def.c \
		gavtg_fgwda.c \
		gavtg_fgwdctrl.c \
		gavtg_fgwdebug.c \
		gavtg_fgwdef.c \
		gavtg_fgwdialog.c \
		gavtg_fgwdparam.c \
		gavtg_fgwevent.c \
		gavtg_fgwexpshr.c \
		gavtg_fgwfile.c \
		gavtg_fgwfont.c \
		gavtg_fgwgc.c \
		gavtg_fgwmain.c \
		gavtg_fgwmenu.c \
		gavtg_fgwpickgen.c \
		gavtg_fgwsignal.c \
		gavtg_fgwsim.c \
		gavtg_fgwtest.c \
		gavtg_fgwview.c \
		gavtg_font.c \
		gavtg_idgwbreadth.c \
		gavtg_idgwda.c \
		gavtg_idgwdebug.c \
		gavtg_idgwdef.c \
		gavtg_idgwdialog.c \
		gavtg_idgwdpmgr.c \
		gavtg_idgwevent.c \
		gavtg_idgwfile.c \
		gavtg_idgwfont.c \
		gavtg_idgwgc.c \
		gavtg_idgwmain.c \
		gavtg_idgwmenu.c \
		gavtg_idgwpickgf.c \
		gavtg_idgwtest.c \
		gavtg_idgwview.c \
		gavtg_iidwdef.c \
		gavtg_iidwdialog.c \
		gavtg_iidwfile.c \
		gavtg_iidwfont.c \
		gavtg_iidwmain.c \
		gavtg_iidwmenu.c \
		gavtg_iidwst.c \
		gavtg_iidwtest.c \
		gavtg_main.c \
		gavtg_warp.c

LINT	      = lint

all:		$(PROGRAM)

$(PROGRAM):     $(OBJS) $(LIBS)
		$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) $(XMLIBS) -o $(PROGRAM)

clean:;		rm -f $(OBJS)

depend:;	mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)

index:;		ctags -wx $(HDRS) $(SRCS)

install:	$(PROGRAM)
		install -s $(PROGRAM) $(DEST)

print:;		$(PRINT) $(HDRS) $(SRCS)

program:        $(PROGRAM)

tags:           $(HDRS) $(SRCS); ctags $(HDRS) $(SRCS)

update:		$(DEST)/$(PROGRAM)

xmlint:;	$(LINT) -I/usr/openware/include -D_NO_PROTO -DBSD -Dsparc -Dsun4 $(SRCS)

$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
		@make -f $(MAKEFILE) DEST=$(DEST) install
###
gavt_debug.o: /usr/include/stdio.h gavt_def.h gavt_ifdef.h
gavt_def.o: gavt_def.h gavt_ifdef.h
gavt_error.o: /usr/include/stdio.h /usr/include/varargs.h gavt_def.h \
	gavt_ifdef.h
gavt_main.o: /usr/include/stdio.h gavt_def.h gavt_ifdef.h
gavt_utility.o: /usr/include/stdio.h /usr/include/malloc.h \
	/usr/include/math.h /usr/include/floatingpoint.h \
	/usr/include/sys/ieeefp.h
gavt_warning.o: /usr/include/stdio.h /usr/include/varargs.h gavt_def.h \
	gavt_ifdef.h
gavtd_file.o: /usr/include/stdio.h /usr/include/string.h \
	/usr/include/sys/stdtypes.h /usr/include/wchar.h gavt_def.h \
	gavt_ifdef.h
gavtd_gadatainf.o: /usr/include/stdio.h /usr/include/limits.h \
	/usr/include/wchar.h /usr/include/math.h /usr/include/floatingpoint.h \
	/usr/include/sys/ieeefp.h gavt_def.h gavt_ifdef.h
gavtd_memory.o: /usr/include/stdio.h /usr/include/malloc.h gavt_def.h \
	gavt_ifdef.h
gavtd_realtime.o: /usr/include/stdio.h /usr/include/string.h \
	/usr/include/sys/stdtypes.h /usr/include/wchar.h gavt_def.h \
	gavt_ifdef.h
gavtg_adwbarchart.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwcolor.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwcostparam.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwda.o: /usr/include/stdio.h /usr/include/string.h \
	/usr/include/sys/stdtypes.h /usr/include/wchar.h gavtg_adwdef.h \
	/usr/include/sys/limits.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwdebug.o: /usr/include/stdio.h gavtg_adwdef.h \
	/usr/include/sys/limits.h /usr/include/wchar.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_adwdef.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwdialog.o: /usr/include/stdio.h /usr/include/varargs.h
gavtg_adwdpmgr.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwevent.o: gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwfont.o: /usr/include/string.h /usr/include/sys/stdtypes.h \
	/usr/include/wchar.h gavtg_adwdef.h /usr/include/sys/limits.h \
	gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwgc.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwidentity.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwmain.o: /usr/include/stdlib.h /usr/include/sys/stdtypes.h \
	/usr/include/wchar.h gavtg_adwdef.h /usr/include/sys/limits.h \
	gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwmenu.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwtest.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_adwview.o: gavtg_adwdef.h /usr/include/sys/limits.h \
	/usr/include/wchar.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_buildmenu.o: gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_color.o: gavt_def.h gavt_ifdef.h
gavtg_debug.o: gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_def.o: gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwda.o: /usr/include/stdio.h /usr/include/math.h \
	/usr/include/floatingpoint.h /usr/include/sys/ieeefp.h gavtg_fgwdef.h \
	gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwdctrl.o: /usr/include/stdio.h gavtg_fgwdef.h gavtg_def.h \
	gavt_def.h gavt_ifdef.h
gavtg_fgwdebug.o: /usr/include/stdio.h gavtg_fgwdef.h gavtg_def.h \
	gavt_def.h gavt_ifdef.h
gavtg_fgwdef.o: gavtg_fgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwdialog.o: /usr/include/stdio.h /usr/include/varargs.h \
	gavtg_fgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwdparam.o: /usr/include/limits.h /usr/include/wchar.h \
	/usr/include/math.h /usr/include/floatingpoint.h \
	/usr/include/sys/ieeefp.h gavtg_fgwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_fgwevent.o: gavtg_fgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwexpshr.o: gavtg_fgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwfile.o: /usr/include/string.h /usr/include/sys/stdtypes.h \
	/usr/include/wchar.h gavtg_fgwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_fgwfont.o: gavtg_fgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwgc.o: gavtg_fgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwmain.o: /usr/include/stdlib.h /usr/include/sys/stdtypes.h \
	/usr/include/wchar.h gavtg_fgwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_fgwmenu.o: gavtg_fgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwpickgen.o: /usr/include/math.h /usr/include/floatingpoint.h \
	/usr/include/sys/ieeefp.h gavtg_fgwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_fgwsignal.o: /usr/include/signal.h /usr/include/sys/signal.h \
	/usr/include/vm/faultcode.h /usr/include/sys/stdtypes.h \
	/usr/include/wchar.h gavtg_fgwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_fgwsim.o: /usr/include/stdio.h /usr/include/sys/types.h \
	/usr/include/sys/stdtypes.h /usr/include/wchar.h \
	/usr/include/sys/sysmacros.h /usr/include/sys/ipc.h \
	/usr/include/sys/sem.h gavtg_fgwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_fgwtest.o: gavtg_fgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_fgwview.o: gavtg_fgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_font.o: gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwbreadth.o: gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwda.o: /usr/include/stdio.h /usr/include/string.h \
	/usr/include/sys/stdtypes.h /usr/include/wchar.h gavtg_idgwdef.h \
	gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwdebug.o: /usr/include/stdio.h gavtg_idgwdef.h gavtg_def.h \
	gavt_def.h gavt_ifdef.h
gavtg_idgwdef.o: gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwdialog.o: /usr/include/stdio.h /usr/include/varargs.h \
	gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwdpmgr.o: /usr/include/math.h /usr/include/floatingpoint.h \
	/usr/include/sys/ieeefp.h gavtg_idgwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_idgwevent.o: gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwfile.o: gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwfont.o: gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwgc.o: gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwmain.o: /usr/include/stdlib.h /usr/include/sys/stdtypes.h \
	/usr/include/wchar.h gavtg_idgwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_idgwmenu.o: gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwpickgf.o: /usr/include/math.h /usr/include/floatingpoint.h \
	/usr/include/sys/ieeefp.h gavtg_idgwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_idgwtest.o: gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_idgwview.o: gavtg_idgwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_iidwdef.o: gavtg_iidwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_iidwdialog.o: /usr/include/stdio.h /usr/include/varargs.h \
	gavtg_iidwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_iidwfile.o: gavtg_iidwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_iidwfont.o: gavtg_iidwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_iidwmain.o: /usr/include/stdlib.h /usr/include/sys/stdtypes.h \
	/usr/include/wchar.h gavtg_iidwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_iidwmenu.o: gavtg_iidwdef.h gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_iidwst.o: /usr/include/stdio.h gavtg_iidwdef.h gavtg_def.h gavt_def.h \
	gavt_ifdef.h
gavtg_iidwtest.o: /usr/include/stdio.h /usr/include/string.h \
	/usr/include/sys/stdtypes.h /usr/include/wchar.h gavtg_iidwdef.h \
	gavtg_def.h gavt_def.h gavt_ifdef.h
gavtg_main.o: gavt_def.h gavt_ifdef.h
