Makefile 2.17 KB
#----------------------------------------------------------------------#
#-- Walkthru makefile -------------------------------------------------#
#----------------------------------------------------------------------#

#----------------------------------------------------------------------#
#-- General Definitions -----------------------------------------------#
#----------------------------------------------------------------------#

.SUFFIXES: .o .c .C

HW_OS				= `/usr/local/bin/hw_os`

#FLAGS =	-DDEBUG

#----------------------------------------------------------------------#
##-- Compiler Definitions ----------------------------------------------#
#----------------------------------------------------------------------#

#CC					= /usr/softlab/contrib/bin/g++
CC					= $(TOOLROOT)/usr/bin/CC
#CC 					= /usr/bin/CC
#CC					= /usr/local/lib/CenterLine/bin/CC
CC_FLAGS				= -g $(FLAGS)
#CC_FLAGS				= -O $(FLAGS)

#----------------------------------------------------------------------#
#-- Include  ----------------------------------------------------------#
#----------------------------------------------------------------------#
INCLUDE = -I. 

#----------------------------------------------------------------------#
#-- Inference Rules ---------------------------------------------------#
#----------------------------------------------------------------------#

.C.o:
	$(CC) -c $(CC_FLAGS) $*.C

default: test 

all: test 


#----------------------------------------------------------------------#
#-- test      ---------------------------------------------------------#
#----------------------------------------------------------------------#

OBJS = dataBase.o \
       bead.o \
       fltReader.o \
       fltWriter.o \
       lsWriter.o \
       lsReader.o \
       image.o \
       txtrWriter.o \
       test.o

test: $(OBJS)	
	rm -f test 
	$(CC) -o test $(OBJS) -lm

#----------------------------------------------------------------------#
#-- Misc --------------------------------------------------------------#
#----------------------------------------------------------------------#

install:	all

clean:
	/bin/rm -rf ${OBJS}

clobber: clean
	/bin/rm -rf test ${MKDEPFILE}

# End of makefile