Skip to content

Commit

Permalink
add freertos_app
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitzbube committed Dec 26, 2020
1 parent 3415014 commit 9f3ee94
Show file tree
Hide file tree
Showing 85 changed files with 62,760 additions and 4 deletions.
115 changes: 115 additions & 0 deletions FreeRTOS/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
################################################################################
################################################################################
##
## Makefile -- makefile for FreeRTOS modules.
##
## Mandatory settings:
##
## o TOPDIR = the toplevel directory (using slashes as path separator)
## o TARGET = the machine qualifier to generate code for
## o DIRECTORIES = the list of sub directories to build
##
################################################################################
################################################################################

TOPDIR = ..
SUBDIR = FreeRTOS

include $(TOPDIR)/env/make/Makefile.config

################################################################################
# project specific settings
################################################################################

DIRECTORIES += portable

LIBRARY = libFreeRTOS

################################################################################
# source files
################################################################################

HEADERS += include/FreeRTOS.h
HEADERS += include/deprecated_definitions.h
HEADERS += include/list.h
HEADERS += include/mpu_wrappers.h
HEADERS += include/portable.h
HEADERS += include/projdefs.h
HEADERS += include/stack_macros.h
HEADERS += include/task.h
HEADERS += include/timers.h
HEADERS += include/queue.h

SOURCES += portable/MemMang/heap_1.c
SOURCES += portable/MemMang/heap_2.c
SOURCES += portable/MemMang/heap_3.c
SOURCES += portable/MemMang/heap_4.c
SOURCES += portable/MemMang/heap_5.c

SOURCES += list.c
SOURCES += queue.c
SOURCES += tasks.c

################################################################################
# define user targets
################################################################################

default: all

clean: clean-objects clean-library $(DIRECTORIES:%=subdir-clean-%)

build: build-objects build-library $(DIRECTORIES:%=subdir-build-%)

headers: install-headers $(DIRECTORIES:%=subdir-headers-%)

install: build install-library $(DIRECTORIES:%=subdir-install-%)

depend: $(DIRECTORIES:%=subdir-depend-%)

all: clean build install

################################################################################
# include internal definitions and rules
################################################################################

include $(TOPDIR)/env/make/Makefile.rules

################################################################################
# local directory specific rules
################################################################################

subdir-clean-%:
@$(NEWLINE)
@$(ECHO) $(ECHOPREFIX) Submaking clean [$(SUBDIR)/$(@:subdir-clean-%=%)] for target [$(TARGET)]
@$(SUBMAKE) -C $(@:subdir-clean-%=%) clean TARGET=$(TARGET)

subdir-depend-%:
@$(NEWLINE)
@$(ECHO) $(ECHOPREFIX) Submaking depend [$(SUBDIR)/$(@:subdir-depend-%=%)] for target [$(TARGET)]
@$(SUBMAKE) -C $(@:subdir-depend-%=%) depend TARGET=$(TARGET)

subdir-headers-%:
@$(NEWLINE)
@$(ECHO) $(ECHOPREFIX) Submaking headers [$(SUBDIR)/$(@:subdir-headers-%=%)] for target [$(TARGET)]
@$(SUBMAKE) -C $(@:subdir-headers-%=%) headers TARGET=$(TARGET)

subdir-build-%:
@$(NEWLINE)
@$(ECHO) $(ECHOPREFIX) Submaking build [$(SUBDIR)/$(@:subdir-build-%=%)] for target [$(TARGET)]
@$(SUBMAKE) -C $(@:subdir-build-%=%) build TARGET=$(TARGET)

subdir-install-%:
@$(NEWLINE)
@$(ECHO) $(ECHOPREFIX) Submaking install [$(SUBDIR)/$(@:subdir-install-%=%)] for target [$(TARGET)]
@$(SUBMAKE) -C $(@:subdir-install-%=%) install TARGET=$(TARGET)

subdir-release-%:
@$(NEWLINE)
@$(ECHO) $(ECHOPREFIX) Submaking release [$(SUBDIR)/$(@:subdir-release-%=%)] for target [$(TARGET)]
@$(SUBMAKE) -C $(@:subdir-release-%=%) release TARGET=$(TARGET)

subdir-doc-%:
@$(NEWLINE)
@$(ECHO) $(ECHOPREFIX) Submaking doc [$(SUBDIR)/$(@:subdir-doc-%=%)] for target [$(TARGET)]
@$(SUBMAKE) -C $(@:subdir-doc-%=%) doc TARGET=$(TARGET)

Loading

0 comments on commit 9f3ee94

Please sign in to comment.