Skip to content

Commit

Permalink
#32 #17 adding the makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaykumarsampath committed May 22, 2018
1 parent 5f976e0 commit 65c26ac
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions src/makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 65c26ac

Please sign in to comment.