From 65c26acc056cf043d42589309f716e374fc9bc62 Mon Sep 17 00:00:00 2001 From: Ajay_Kumar Date: Tue, 22 May 2018 11:39:06 +0200 Subject: [PATCH] #32 #17 adding the makefile --- src/makefile | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 src/makefile diff --git a/src/makefile b/src/makefile new file mode 100644 index 0000000..ce85452 --- /dev/null +++ b/src/makefile @@ -0,0 +1,74 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +-include ../makefile.init + +RM := rm -rf + +# All of the sources participating in the build are defined here +-include sources.mk +-include subdir.mk +-include test/subdir.mk +-include .metadata/.plugins/org.eclipse.cdt.make.core/subdir.mk + +OS_SUFFIX := $(subst Linux,linux,$(subst Darwin/x86_64,darwin,$(shell uname -s)/$(shell uname -m))) + +-include objects.mk + +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(strip $(CC_DEPS)),) +-include $(CC_DEPS) +endif +ifneq ($(strip $(C++_DEPS)),) +-include $(C++_DEPS) +endif +ifneq ($(strip $(C_UPPER_DEPS)),) +-include $(C_UPPER_DEPS) +endif +ifneq ($(strip $(CXX_DEPS)),) +-include $(CXX_DEPS) +endif +ifneq ($(strip $(CU_DEPS)),) +-include $(CU_DEPS) +endif +ifneq ($(strip $(CPP_DEPS)),) +-include $(CPP_DEPS) +endif +ifneq ($(strip $(C_DEPS)),) +-include $(C_DEPS) +endif +endif + +-include ../makefile.defs + +# OpenGL+GLUT OS-specific define +ifeq ($(shell uname -s),Darwin) +GLUT_LIBS := -Xlinker -framework -Xlinker GLUT -Xlinker -framework -Xlinker OpenGL +else +GLUT_LIBS := -lGL -lGLU -lglut +endif + + +# Add inputs and outputs from these tool invocations to the build variables + +# All Target +all: DWN-gpuController + +# Tool invocations +DWN-gpuController: $(OBJS) $(USER_OBJS) + @echo 'Building target: $@' + @echo 'Invoking: NVCC Linker' + /usr/local/cuda-7.0/bin/nvcc --cudart static --relocatable-device-code=false -gencode arch=compute_20,code=compute_20 -gencode arch=compute_20,code=sm_20 -m64 -link -o "DWN-gpuController" $(OBJS) $(USER_OBJS) $(LIBS) + @echo 'Finished building target: $@' + @echo ' ' + +# Other Targets +clean: + -$(RM) $(CC_DEPS)$(C++_DEPS)$(EXECUTABLES)$(C_UPPER_DEPS)$(CXX_DEPS)$(OBJS)$(CU_DEPS)$(CPP_DEPS)$(C_DEPS) DWN-gpuController + -@echo ' ' + +.PHONY: all clean dependents +.SECONDARY: + +-include ../makefile.targets