root/nano-RK/projects/basic_bmac/makefile

Revision 258, 0.9 kB (checked in by agr, 1 year ago)

added support for multiple platform common makefile

Line 
1 # Platform name  cc2420DK, firefly2_1, firefly2_2, micaZ
2 PLATFORM = firefly2_2
3
4
5 # Target file name (without extension).
6 TARGET = main
7
8 # Set the Port that you programmer is connected to
9 PROGRAMMING_PORT = /dev/ttyUSB1 # programmer connected to serial device
10
11 # Set this such that the nano-RK directory is the base path
12 ROOT_DIR = ../..
13
14 # Set platform specific defines
15 # The following will be defined based on the PLATFORM variable:
16 # PROG_TYPE  (e.g. avrdude, or uisp)
17 # MCU (e.g. atmega32, atmega128, atmega1281)
18 # RADIO (e.g. cc2420)
19 include $(ROOT_DIR)/include/platform.mk
20
21
22 SRC = $(TARGET).c
23
24 # Add extra source files.
25 # For example:
26 SRC += $(ROOT_DIR)/src/net/bmac/bmac.c
27
28
29 # Add extra includes files.
30 # For example:
31 EXTRAINCDIRS =
32 EXTRAINCDIRS += $(ROOT_DIR)/src/net/bmac
33
34
35 #  This is where the final compile and download happens
36 include $(ROOT_DIR)/include/platform/$(PLATFORM)/common.mk
Note: See TracBrowser for help on using the browser.