# ********************************************************************** 
# 
# THIS IS AN AUTO-GENERATED FILE. DO NOT EDIT DIRECTLY
# 
# To change the settings in here:
# 		- Right click on the project
#		- Select "Properties" option
#       - Use property pages to set options. Details given below 
#
# ********************************************************************** 
 
# These flags can be set from C/C++ build property page -> nios2-elf-gcc -> General
CFLAGS = -DALT_DEBUG -O0 -g -Wall

ASFLAGS = -g

# These flags can be set from C/C++ build property page -> nios2-elf-gcc.linker -> General
LDFLAGS := 

LDDEPS +=\

LIBS := 

LIBS += -lm

RM := rm -rf

# This project
PROJECT := hello_world_0
# Location of this project
APP_DIR :=/cygdrive/d/0Clare/DE2/DE2_NIOS_LITE_SRAM/software/hello_world_0

# Configuration for application project
# The configuration can be changed from C/C++ build property page -> Configuration drop-down box.
# If changed a new configuration folder (e.g. Release) is generated with all the generated and built files
APP_CONFIG := Debug


# Referenced system library & location. 
# These can be changed from App Options property page
SYSTEM_NAME := hello_world_0_syslib
SYSTEM_DIR := /cygdrive/d/0Clare/DE2/DE2_NIOS_LITE_SRAM/software/hello_world_0_syslib

# Configuration for system library project
# The configuration can be changed from system library properties -> C/C++ build -> Configuration drop-down box.
# If changed a new configuration folder (e.g. Release) is generated with all the generated and built files
SYS_CONFIG := Debug

PTF := D:/0Clare/DE2/DE2_NIOS_LITE_SRAM/nios_ii.ptf

# Change this setting from Window->Preferences->Nios II Run and Build Settings
DO_MAKE_OBJDUMP := 0

# **********************************************************************
# Check for a space in the environment var SOPC_KIT_NIOS2

space = $(empty) $(empty)
space-to-question = $(subst $(space),?,$1)

HOST_OS :=  $(shell uname | head -c 3 | tr [:upper:] [:lower:])

SOPC_KIT_NIOS2 := $(strip $(SOPC_KIT_NIOS2))
ifneq ($(call space-to-question,$(SOPC_KIT_NIOS2)),$(SOPC_KIT_NIOS2))
# If there is a space in your SOPC_KIT_NIOS2 path, then it must be
# fixed.
ifeq ($(HOST_OS),cyg)
# Use short 8.3 dos path on Windows/Cygwin
SOPC_KIT_NIOS2 := $(shell cygpath --dos "$(SOPC_KIT_NIOS2)")
else
# Use a symlink to a unique dir in /tmp/altera_nios2 dir on Unix
SHELL := /bin/bash
USER = $(shell whoami)
DATE = $(shell date +%Y-%m-%d)
TMP_DIR = /tmp/altera_nios2-$(USER)
CREATE_TMP_DIR := $(shell mkdir -p $(TMP_DIR))
NIOS_VERSION_ID := $(shell nios2-elf-gcc -v 2>&1 | grep Altera | sed -e 's/[^0-9]//g')
TMP_SOPC_KIT_NIOS2 := $(TMP_DIR)/altera_nios2_kit_tmp-$(DATE)-$(NIOS_VERSION_ID)
CREATE_TMP_NIOS_DIR_CMD := if [ ! -d $(TMP_SOPC_KIT_NIOS2) ]; then ln -s "$(SOPC_KIT_NIOS2)" "$(TMP_SOPC_KIT_NIOS2)"; fi
CREATE_TMP_NIOS_DIR := $(shell $(CREATE_TMP_NIOS_DIR_CMD))
SOPC_KIT_NIOS2 := $(TMP_SOPC_KIT_NIOS2)
endif

export SOPC_KIT_NIOS2
endif
# **********************************************************************

# Every subdirectory with source files must be described here
SUBDIRS := \
. \

# Include the makefiles for each source subdirectory
-include ${patsubst %, %/subdir.mk, $(SUBDIRS)}
MAKEFILE_LIST += $(patsubst %, %/subdir.mk, $(SUBDIRS))


# Include makefile for the OS we are building on as specified in system library project
APP_MAKEFILE := $(SOPC_KIT_NIOS2)/components/altera_hal/build/app.mk
include $(APP_MAKEFILE)


includes:
	@echo $(CC) -DALTERA_INCLUDES -S $(CPPFLAGS) $(CFLAGS) $(firstword $(C_SRCS))

