diff options
Diffstat (limited to 'sdk-blink')
-rw-r--r-- | sdk-blink/CMakeLists.txt | 33 | ||||
-rw-r--r-- | sdk-blink/Makefile | 24 |
2 files changed, 29 insertions, 28 deletions
diff --git a/sdk-blink/CMakeLists.txt b/sdk-blink/CMakeLists.txt index c365501..85c5ad4 100644 --- a/sdk-blink/CMakeLists.txt +++ b/sdk-blink/CMakeLists.txt @@ -1,25 +1,38 @@ +## +## spreadspace rppico utils +## +## +## Copyright (C) 2022 Christian Pointner <equinox@spreadspace.org> +## +## This file is part of spreadspace rppico utils. +## +## spreadspace rppico utils is free software: you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation, either version 3 of the License, or +## any later version. +## +## spreadspace rppico utils is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with spreadspace rppico utils. If not, see <http://www.gnu.org/licenses/>. +## + cmake_minimum_required(VERSION 3.12) include(../sdk.cmake) project(blink C CXX ASM) -set(CMAKE_C_STANDARD 11) -set(CMAKE_CXX_STANDARD 17) pico_sdk_init() -add_compile_options(-Wall - -Wno-format # int != int32_t as far as the compiler is concerned because gcc has int32_t as long int - -Wno-unused-function # we have some for the docs that aren't called - -Wno-maybe-uninitialized - ) +add_compile_options(-Wall) add_executable(blink blink.c ) -# pull in common dependencies target_link_libraries(blink pico_stdlib) - -# create map/bin/hex file etc. pico_add_extra_outputs(blink) diff --git a/sdk-blink/Makefile b/sdk-blink/Makefile index ca7776e..110de49 100644 --- a/sdk-blink/Makefile +++ b/sdk-blink/Makefile @@ -21,22 +21,10 @@ ## PROJECT := blink -include ../defines.mk - -all: build -.PHONY: build clean distclean - -build/Makefile: - mkdir -p build - cd build; cmake .. - -build: build/Makefile - make -C build +PICO_PLATFORM := rp2040 +PICO_BOARD := pico +CMAKE_BUILD_TYPE := Release -clean: - make -C build clean - -distclean: - rm -rf build - -include ../rules.mk +include ../defines.mk +include ../sdk.mk +include ../debug.mk |