#
# Imakefile for libgvl
#
# Author:	Kenneth Chin-Purcell, AHPCRC
#

# -----------------------------------------------------------------------
# Change?  Add?

GVLUTIL		= ../util

# -----------------------------------------------------------------------
# Build:

APP		= mkproto
SRCS		= mkproto.c

AllTarget($(APP))
NormalProgramTarget(mkproto,mkproto.o,,,)

#ifdef SGIArchitecture
mkproto.o	: mkproto.c
	$(CC) -cckr $(CDEBUGFLAGS) $(ALLDEFINES) -c mkproto.c
#endif

# -----------------------------------------------------------------------
# Standard targets & options:

#ifdef SGIArchitecture
CCOPTIONS	= -fullwarn -woff 24,269
LINTOPTS	= -u -woff 102
#endif

#ifdef Debugging
CDEBUGFLAGS	= -g
#endif

NormalLintTarget($(SRCS))

opt		: 
	$(IMAKE_CMD)
	$(MAKE)

debug		: 
	$(IMAKE_CMD) -DDebugging
	$(MAKE)

proto		: $(SRCS)
	$(GVLUTIL)/protize $(SRCS)

snap		:
	$(GVLUTIL)/snapdir $(APP)

sdep		:
	@echo Depending in...
	@awk '/^# Dependencies/ { exit } { print }' Imakefile > Imakefile.tmp
	@echo '# Dependencies' >> Imakefile.tmp
	@$(CC) $(ALLDEFINES) -M $(SRCS) | $(GVLUTIL)/incfil >> Imakefile.tmp
	@mv Imakefile.tmp Imakefile

# -----------------------------------------------------------------------
# Dependencies

mkproto.o: mkproto.c mkproto.h
