Commit 0868d72c authored by Guillaume Gonnet's avatar Guillaume Gonnet
Browse files

Fix all Makefiles.

parent b185b2ec
# Ignore "bin" directory.
/bin/
\ No newline at end of file
......@@ -7,7 +7,7 @@
APPLICATION = cubsat
# Use IM880B board as default (that has a Semtech SX1276).
# Use IM880B board as default (that has a Semtech SX1272).
BOARD ?= im880b
DRIVER ?= sx1272
......@@ -21,3 +21,15 @@ DEVELHELP ?= 1
# Change this to 0 show compiler invocation lines by default.
QUIET ?= 1
# All modules defined in this application.
USEMODULE += cubsat-app
USEMODULE += loramac-mac
USEMODULE += loramac-region
USEMODULE += loramac-crypto
# Source directory is "src".
DIRS += src
include $(RIOTBASE)/Makefile.include
......@@ -4,13 +4,23 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE := midway-src
# Directory containing LoRaMAC-node.
LORAMAC_DIR := $(CURDIR)/loramac
export LORAMAC_DIR := $(CURDIR)/loramac
# Include folders for LoRaMAC-node.
LORAMAC_INC := \
-I$(LORAMACDIR)/include \
-I$(LORAMACDIR)/crypto \
-I$(LORAMACDIR)/region \
-I$(LORAMACDIR)/mac
export LORAMAC_INC := \
-I$(LORAMAC_DIR)/include \
-I$(LORAMAC_DIR)/crypto \
-I$(LORAMAC_DIR)/region \
-I$(LORAMAC_DIR)/mac
# Add source directories.
DIRS += app
DIRS += loramac
# DIRS += $(CURDIR)/lorariot
include $(RIOTBASE)/Makefile.base
......@@ -4,4 +4,6 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE := cubsat-app
include $(RIOTBASE)/Makefile.base
/*
Cubsat benchmark application.
Copyright (C) 2019, ENSIMAG students
This project is under the MIT license
This file is based on "semtech-loramac" module from RIOT OS, under the
LGPLv2.1 license.
*/
*/
\ No newline at end of file
#include <stdio.h>
int main(void)
{
puts("Hello !\n");
}
......@@ -4,6 +4,8 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE := midway-src
DIRS += mac
DIRS += region
DIRS += crypto
......
......@@ -4,4 +4,6 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE := loramac-crypto
include $(RIOTBASE)/Makefile.base
......@@ -29,8 +29,6 @@ extern "C" {
#include "xtimer.h"
#include "msg.h"
#include "semtech_loramac.h"
/**
* @brief Timer object description
*/
......
......@@ -1995,7 +1995,7 @@ LoRaMacStatus_t LoRaMacMcpsRequest( McpsReq_t *mcpsRequest );
* Automatically add the Region.h file at the end of LoRaMac.h file.
* This is required because Region.h uses definitions from LoRaMac.h
*/
#include "region/Region.h"
#include "Region.h"
/*! \} defgroup LORAMAC */
......
......@@ -4,6 +4,8 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE := loramac-mac
CFLAGS += -Wno-sign-compare
include $(RIOTBASE)/Makefile.base
......@@ -8,7 +8,4 @@ MODULE := loramac-region
CFLAGS += -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare
INCLUDES += -I$(LORAMACDIR)/mac/boards \
-I$(LORAMACDIR)/mac/radio
include $(RIOTBASE)/Makefile.base
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment