#
# Hitmap 1.1
# Makefile adapted from template (see config directory)
#

#
# 1. DEFINITIONS AND FLAGS FOR THIS PARTICULAR APPLICATION
# 	(THEY WILL BE AUTOMATICALLY ADDED TO THE MAIN COMPILATION COMMAND)
#
APP_FLAGS=-I. -I/home/pegaso/NVIDIA_GPU_Computing_SDK/C/common/inc/ 
PLATFORM=cuda

#
# 2. DECLARE APPLICATION TARGETS
#
APP_TARGETS=libhitcuda.a

#
# 3. DOES THIS APPLICATION CALL PLUGINS WHICH USE LIBRARIES EXTERNAL TO HITMAP ?
#	( UNCOMMENT IF NEEDED )
#
#HIT_USE_METIS=y

#
# 4. LOAD Hitmap COMPILING DEFINITIONS 
#	( PLEASE, SET HITMAP BASEDIR )
#
HIT_BASEDIR=..
include $(HIT_BASEDIR)/config/make.def

#
# 5. DECLARE TARGET SOURCES, AND SPECIFIC BUILDING RULES FOR YOUR APPLICATION
# 	( SUBSTITUTE THE EXAMPLES BELLOW )
#
#hit_acel.o
INC=$(HIT_INCLUDE_DIR)
OBJS=hit_partition.o hit_acel.o acelNVIDIA.o cuda_utils.o hit_update.o


libhitcuda.a: $(OBJS)
	ar -rcs $@ $(OBJS)

hit_partition.o: hit_partition.c hit_partition.h 
	$(HIT_COMPILE) -c hit_partition.c


hit_acel.o: hit_acel.c hit_acel.h 
	$(HIT_COMPILE) -c hit_acel.c

acelNVIDIA.o: acelNVIDIA.cu acelNVIDIA.h 
	$(HIT_COMPILE) -c acelNVIDIA.cu

cuda_utils.o: cuda_utils.cu hit_acel.h 
	$(HIT_COMPILE) -c cuda_utils.cu

hit_update.o: hit_update.c 
	$(HIT_COMPILE) $< -c 

#
# END
#
