Skip to content

Commit

Permalink
include generated Makefile.identify-target
Browse files Browse the repository at this point in the history
  • Loading branch information
rodan committed Nov 13, 2021
1 parent 5150bb5 commit 8fdcae2
Show file tree
Hide file tree
Showing 8 changed files with 2,029 additions and 74 deletions.
Empty file removed .gitmodules
Empty file.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2O19 Petre Rodan
Copyright 2O19-2021 Petre Rodan

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Expand Down
40 changes: 24 additions & 16 deletions Makefile.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@ ifndef REFLIB_ROOT
${error REFLIB_ROOT not defined! You must specify where the main directory resides}
endif

ifeq ($(OS),Windows_NT)
###################### Windows OS ######################
################## GCC Root Variable ###################
GCC_DIR ?= C:\ti\ccs1000\ccs\tools\compiler\msp430-gcc-9.2.0.50_win64
GCC_MSP_INC_DIR ?= $(GCC_DIR)\include
GCC_CCS_DIR := C:\ti\ccs1000\ccs\ccs_base\msp430
GCC_CCS_INC_GCC_DIR := $(GCC_CCS_DIR)\include_gcc
GCC_CCS_INC_DIR := $(GCC_CCS_DIR)\include
LIB_DIR := $(GCC_CCS_INC_GCC_DIR)
GLUELIB := $(REFLIB_ROOT)/glue/generic
LDDIR := $(GCC_CCS_INC_GCC_DIR)\$(DEVICE)
RM := rm -f
else
################### Linux or Mac OS ####################
################## GCC Root Variable ###################
GCC_DIR ?= /opt/msp430
GCC_EXTRA_INC_DIR ?= /opt/msp430-gcc-support-files/include
GLUELIB := $(REFLIB_ROOT)/glue/generic
GCC_CCS_INC_GCC_DIR := $(GCC_EXTRA_INC_DIR)
RM := rm -f
endif


ifneq ($(IGNORE_TARGET), true)
include $(REFLIB_ROOT)/Makefile.identify-target
endif
Expand All @@ -22,29 +45,14 @@ else
endif

ifeq ($(OS),Windows_NT)
###################### Windows OS ######################
################## GCC Root Variable ###################
GCC_DIR ?= C:\ti\ccs1000\ccs\tools\compiler\msp430-gcc-9.2.0.50_win64
GCC_MSP_INC_DIR ?= $(GCC_DIR)\include
GCC_CCS_DIR := C:\ti\ccs1000\ccs\ccs_base\msp430
GCC_CCS_INC_GCC_DIR := $(GCC_CCS_DIR)\include_gcc
GCC_CCS_INC_DIR := $(GCC_CCS_DIR)\include
LIB_DIR := $(GCC_CCS_INC_GCC_DIR)
GLUELIB := $(REFLIB_ROOT)/glue/generic
LDDIR := $(GCC_CCS_INC_GCC_DIR)\$(DEVICE)
RM := rm -f
else
################### Linux or Mac OS ####################
################## GCC Root Variable ###################
GCC_DIR ?= /opt/msp430
GCC_EXTRA_INC_DIR ?= /opt/msp430-gcc-support-files/include
GLUELIB := $(REFLIB_ROOT)/glue/generic
GCC_CCS_INC_GCC_DIR := $(GCC_EXTRA_INC_DIR)
LIB_DIR := $(GCC_MSP_LIB_DIR)
LDDIR := $(GCC_EXTRA_INC_DIR)/$(shell echo $(DEVICE) | tr A-Z a-z)
RM := rm -f
endif


# location for the MSP430 DriverLib provided by Texas Instruments
# can be downloaded from https://www.ti.com/tool/MSPDRIVERLIB
DRIVERLIB:=$(REFLIB_ROOT)/driverlib/$(FAMILY)
Expand Down
Loading

0 comments on commit 8fdcae2

Please sign in to comment.