-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
505 changed files
with
13,462 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,12 @@ | |
*.i*86 | ||
*.x86_64 | ||
*.hex | ||
|
||
#SDCC | ||
*.asm | ||
*.rel | ||
*.lst | ||
*.sym | ||
|
||
#joe | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
TARGETS := $(strip $(shell ls -d _target*)) | ||
ifeq ($(TARGETS),) | ||
$(error There are no targets to clean/build) | ||
endif | ||
MAKE_PREFIX = make_ | ||
CLEAN_PREFIX = clean_ | ||
MAKE_TARGETS := $(foreach dir,$(TARGETS),$(MAKE_PREFIX)$(dir)) | ||
CLEAN_TARGETS := $(foreach dir,$(TARGETS),$(CLEAN_PREFIX)$(dir)) | ||
|
||
all: $(MAKE_TARGETS) | ||
|
||
$(MAKE_TARGETS): | ||
$(MAKE) -C ./$(subst $(MAKE_PREFIX),,$@) all | ||
|
||
clean: $(CLEAN_TARGETS) | ||
|
||
$(CLEAN_TARGETS): | ||
$(MAKE) -C ./$(subst $(CLEAN_PREFIX),,$@) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
############################################### | ||
### Begin user-specific portion of Makefile ### | ||
############################################### | ||
|
||
# Add directories here that appear under the <top level>/src folder that should not be compiled | ||
SUBSRCDIRSTOFILTER = | ||
|
||
# If the build target name is non-standard, enter the standard build target found in libraries here to override. | ||
# Leave this blank if this build target has a standard name. | ||
EXTERNALTARGETNAME = | ||
|
||
# If the source code requires a minimum version of a compiler build, then enter it here. This value must be an integer! | ||
# Leave this blank if the source can be built with any compiler version. | ||
export MINCOMPILERBUILD = | ||
|
||
############################################# | ||
### End user-specific portion of Makefile ### | ||
############################################# | ||
|
||
# Functions needed by this makefile and the one that builds the source libraries (MakefileSrc) | ||
export ECHO = @echo | ||
export RM = rm | ||
export SED = sed | ||
export MKDIR = mkdir | ||
export TR = tr | ||
export BLACKHOLE = /dev/null | ||
export PWD = pwd | ||
export CD = cd | ||
export LS = ls | ||
|
||
# Name for this build target | ||
export TARGETNAME := $(shell $(PWD) | $(SED) -e 's_/.*/__' | $(SED) -e 's_\S.*\\__') | ||
|
||
# Name for external build target | ||
ifeq ($(EXTERNALTARGETNAME),) | ||
EXTERNALTARGETNAMELCL = $(TARGETNAME) | ||
else | ||
EXTERNALTARGETNAMELCL = $(EXTERNALTARGETNAME) | ||
endif | ||
|
||
# Directories related to the library and location of the local source tree | ||
TOPLEVELREL = .. | ||
LIBNAME := $(shell $(CD) .. && $(PWD) | $(SED) -e 's_/.*/__' | $(SED) -e 's_\S.*\\__' && $(CD) $(TARGETNAME)) | ||
TARGETTOSRCDIRREL = $(TOPLEVELREL)/src | ||
SRCTOTARGETDIRREL = ../$(TARGETNAME) | ||
LOCALSRCRELTOTARGET = ../../$(TARGETNAME) | ||
|
||
# Include directories (outside this folder) that the sub makes need to know about | ||
EXTERNLIBS = $(filter-out $(LIBNAME),$(filter lib_%,$(subst /.,,$(strip $(shell $(CD) ../.. && $(LS) -d */. && $(CD) $(LIBNAME)/$(TARGETNAME)))))) | ||
export EXTERNINCDIRS = $(foreach dir,$(EXTERNLIBS),../../$(dir)/include ../../$(dir)/$(EXTERNALTARGETNAMELCL)/include) | ||
|
||
# Directories related to the build process of the target | ||
export TARGETDIR = $(TARGETNAME) | ||
export TARGETLIBDIRREL = lib | ||
export TARGETOBJDIRREL = obj | ||
export TARGETDEPDIRREL = dep | ||
export TARGETSRCMAKEFILE = $(LOCALSRCRELTOTARGET)/MakefileSrc | ||
export TARGETRELTOSUBSRCREL = ../../$(TARGETNAME) | ||
|
||
# Directories inside the local source tree | ||
SUBSRCDIRSRAW := $(subst /.,,$(strip $(shell $(CD) $(TARGETTOSRCDIRREL) && $(LS) -d */. && $(CD) $(SRCTOTARGETDIRREL)))) | ||
ifeq ($(SUBSRCDIRSRAW),) | ||
$(error There are no source directories to clean/build) | ||
endif | ||
SUBSRCDIRSRAWFILT := $(filter-out $(SUBSRCDIRSTOFILTER),$(SUBSRCDIRSRAW)) | ||
ifeq ($(SUBSRCDIRSRAWFILT),) | ||
$(error There are available source directories to clean/build, but they have been filtered out by SUBSRCDIRSTOFILTER) | ||
endif | ||
SUBSRCDIRS := $(foreach dir,$(SUBSRCDIRSRAWFILT),$(TARGETTOSRCDIRREL)/$(dir)) | ||
|
||
|
||
all: | ||
$(ECHO) | ||
$(ECHO) "Building target '$(TARGETNAME)' for library collection '$(LIBNAME)'" | ||
@$(MAKE) $(SUBSRCDIRS) | ||
$(ECHO) | ||
$(ECHO) "Finished building target '$(TARGETNAME)' for library collection '$(LIBNAME)'" | ||
|
||
$(SUBSRCDIRS): | ||
$(ECHO) | ||
$(ECHO) "Building library '$(@F)'" | ||
$(MAKE) -C $@ all | ||
$(ECHO) "Finished building library '$(@F)'" | ||
|
||
clean: | ||
$(ECHO) | ||
$(ECHO) "Cleaning target '$(TARGETNAME)' for library '$(LIBNAME)'" | ||
$(if $(TARGETLIBDIRREL),$(RM) -rf $(TARGETLIBDIRREL)/*) | ||
$(if $(TARGETOBJDIRREL),$(RM) -rf $(TARGETOBJDIRREL)/*) | ||
$(if $(TARGETDEPDIRREL),$(RM) -rf $(TARGETDEPDIRREL)/*) | ||
$(ECHO) "Finished cleaning target '$(TARGETNAME)' for library '$(LIBNAME)'" | ||
|
||
.PHONY: $(SUBSRCDIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Programs to use for creating dependencies, compiling source files, and creating the library file, respectively | ||
DEP = sdcc | ||
CC = sdcc | ||
LIB = sdcclib | ||
|
||
# Flags for above programs when calling them from the command line | ||
DFLAGS = -MM $(INCDIRS) $< | ||
CFLAGS = --model-large --std-c99 $(INCDIRS) -c $< -o "$(OBJDIR)/" | ||
LFLAGS = | ||
|
||
# File extensions for dependency files, source files, object files, and library files, respectively | ||
DEPEXT = d | ||
SRCEXT = c | ||
OBJEXT = rel | ||
LIBEXT = lib | ||
|
||
# Compiler version | ||
ifneq ($(MINCOMPILERBUILD),) | ||
CCVERSION := $(subst \#,,$(filter \#%,$(strip $(shell $(CC) -v)))) | ||
CCVERSIONOK := $(shell [ $(CCVERSION) -ge $(MINCOMPILERBUILD) ] && echo "YES" || echo "NO") | ||
ifeq ($(CCVERSIONOK),NO) | ||
$(error "The build has detected an SDCC build of #$(CCVERSION). This library must be built by an SDCC build of at least #$(MINCOMPILERBUILD). Please update your SDCC installation.") | ||
endif | ||
endif | ||
|
||
# Target directory | ||
TARGETDIR = $(TARGETRELTOSUBSRCREL) | ||
|
||
# Source dir name, include directories, and sub source dir | ||
NAME := $(shell $(PWD) | $(SED) -e 's_/.*/__' | $(SED) -e 's_\S.*\\__') | ||
INCDIRS = -I../../include -I$(TARGETDIR)/include $(foreach dir,$(strip $(EXTERNINCDIRS)),-I../$(dir)) | ||
LCLSRCDIR = src | ||
|
||
# Directories for objects, dependencies, and library files | ||
OBJDIR = $(TARGETDIR)/$(TARGETOBJDIRREL)/$(NAME) | ||
DEPDIR = $(TARGETDIR)/$(TARGETDEPDIRREL)/$(NAME) | ||
LIBDIR = $(TARGETDIR)/$(TARGETLIBDIRREL) | ||
|
||
# Name of library file, list of source files, object files, and dependency files | ||
LIBFILE = $(LIBDIR)/$(NAME).$(LIBEXT) | ||
SRCFILES := $(shell $(LS) $(LCLSRCDIR)/*.$(SRCEXT)) | ||
OBJFILES = $(subst .$(SRCEXT),.$(OBJEXT),$(subst $(LCLSRCDIR),$(OBJDIR),$(SRCFILES))) | ||
DEPFILES = $(subst .$(SRCEXT),.$(DEPEXT),$(subst $(LCLSRCDIR),$(DEPDIR),$(SRCFILES))) | ||
|
||
# Used to makes sure source files get built if their dependency files are modified | ||
-include $(DEPFILES) | ||
|
||
all: build | ||
|
||
build: $(LIBFILE) | ||
|
||
$(LIBDIR)/%.$(LIBEXT): $(OBJFILES) | ||
$(ECHO) | ||
$(ECHO) "Building library file '$@'" | ||
$(LIB) $(LFLAGS) $@ $(OBJFILES) | ||
$(ECHO) "Finished building library file '$@'" | ||
$(ECHO) | ||
|
||
$(OBJDIR)/%.$(OBJEXT) : $(LCLSRCDIR)/%.$(SRCEXT) $(DEPDIR)/%.$(DEPEXT) | ||
$(ECHO) | ||
$(ECHO) "Building object file '$@'" | ||
[ -d $(OBJDIR) ] || $(MKDIR) $(OBJDIR) > $(BLACKHOLE) | ||
$(CC) $(CFLAGS) | ||
$(ECHO) "Finished building object file '$@'" | ||
|
||
$(DEPDIR)/%.$(DEPEXT): $(LCLSRCDIR)/%.$(SRCEXT) | ||
$(ECHO) | ||
$(ECHO) "Building dependency file '$@'" | ||
[ -d $(DEPDIR) ] || $(MKDIR) $(DEPDIR) > $(BLACKHOLE) | ||
$(ECHO) "$(OBJDIR)/" | $(TR) -d '\n' | $(TR) -d '\r' > $@.tmp | ||
$(DEP) $(DFLAGS) >> $@.tmp | ||
$(SED) 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.tmp > $@ | ||
$(RM) -f $@.tmp | ||
$(ECHO) "Finished building dependency file '$@'" | ||
|
||
.SECONDARY: $(OBJFILES) $(DEPFILES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/acomp/acomp_configure.rel: src/acomp_configure.c ../../include/acomp.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h \ | ||
../../include/adc.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/adc/adc_configure.rel: src/adc_configure.c ../../include/adc.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/adc/adc_set_input_channel.rel: src/adc_set_input_channel.c \ | ||
../../include/adc.h ../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
3 changes: 3 additions & 0 deletions
3
_target_sdcc_nrf24le1_24/dep/adc/adc_start_single_conversion.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/adc/adc_start_single_conversion.rel: src/adc_start_single_conversion.c \ | ||
../../include/adc.h ../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
4 changes: 4 additions & 0 deletions
4
_target_sdcc_nrf24le1_24/dep/adc/adc_start_single_conversion_get_value.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/adc/adc_start_single_conversion_get_value.rel: \ | ||
src/adc_start_single_conversion_get_value.c ../../include/adc.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/delay/delay_ms.rel: src/delay_ms.c ../../include/delay.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/delay/delay_s.rel: src/delay_s.c ../../include/delay.h ../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/delay/delay_us.rel: src/delay_us.c ../../include/delay.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_complement.rel: src/gpio_pin_complement.c ../../include/gpio.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_configure.rel: src/gpio_pin_configure.c ../../include/gpio.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_dir_input.rel: src/gpio_pin_dir_input.c ../../include/gpio.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_dir_output.rel: src/gpio_pin_dir_output.c ../../include/gpio.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_val_clear.rel: src/gpio_pin_val_clear.c ../../include/gpio.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_val_complement.rel: src/gpio_pin_val_complement.c \ | ||
../../include/gpio.h ../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_val_read.rel: src/gpio_pin_val_read.c ../../include/gpio.h \ | ||
../../include/reg24le1.h \ | ||
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h |
Oops, something went wrong.