##########################################################################
# Copyright 1992 to 1998 MBARI                                            
##########################################################################
# Summary  : Makefile for UNIX romsplit utility
# Filename : Makefile
# Author   : Andrew Pearce 
# Project  : Tiburon
# Version  : Version 1.0
# Created  : 05/05/98
# Modified : 05/05/98
# Archived :
##########################################################################
# Modification History:
# $Header: $
# $Log:    $
#
##########################################################################
#
# This is a makefile template that can be used to build vxWorks and
# unix applications. One feature of this makefile it the automatic 
# generation of header file dependency information which is stored in
# .d files in the source code directory.
#
# The makefile assumes the environment variables VW and MBARI_VW are
# set to point to the vxWorks directory base and MBARI vxWorks code
# base respectively. It also assumes the use of CFLAGS for defining
# compiler options. The complier defined by CC must support the -M
# option for generating automatic dependency information.
#
###########################################################################

CC	    = gcc
LD	    = gcc

DEBUG 	    = -g

CFLAGS 	    = $(DEBUG) -c -ansi -pipe -DUNIX -DINCLUDE_PROTOTYPES $(IFLAGS)

CCFLAGS     = $(DEBUG) -c -ansi -pipe -DUNIX -DINCLUDE_PROTOTYPES $(IFLAGS)

IFLAGS	    = -I/usr/include/mbari -I/usr/tiburon/dm/all
 
LDFLAGS     = 

LIBS        = /usr/tiburon/dm/unix/libdm.a
	      
PROGRAM	    = romsplit

SRCS	    = romsplit.c

CC_SRCS     = 

OBJS	    = $(SRCS:.c=.o) $(CC_SRCS:.cc=.o)

all:          $(PROGRAM)

$(PROGRAM):   $(OBJS) $(LIBS) Makefile
	      $(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)

##########################################################################
# Do not modify anything below this line unless absolutely necessary

%.d: %.c
	    @echo Generating dependencies for $?
	    @$(CC) -M $(CFLAGS) $? > $@

%.d: %.cc
	    @echo Generating dependencies for $?
	    @$(CC) -M $(CCFLAGS) $? > $@

%.o: %.c
	    $(CC) $(CFLAGS) $< -o $@	

%.o: %.cc
	    $(CC) $(CCFLAGS) $< -o $@

DEST	    = .

INSTALL     = install

MAKEFILE    = Makefile

include       $(SRCS:.c=.d) $(CC_SRCS:.cc=.d)

depend:	
	    
echo:;        @echo $(PROGRAM) from $(SRCS) $(CC_SRCS)

clean:
	      rm -f $(PROGRAM) $(OBJS) $(OBJS:.o=.d)

get_release:


put_release:

##########################################################################







