root/nano-RK/projects/basic_rtl/rtl_coord/makefile
| Revision 259, 1.3 kB (checked in by agr, 1 year ago) |
|---|
| Line | |
|---|---|
| 1 | # Platform name cc2420DK, firefly, micaZ, firefly2, firefly2_2 |
| 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 # Default FireFly serial port |
| 10 | # PROGRAMMING_PORT = /dev/ttyUSB0 # Default micaZ serial port |
| 11 | |
| 12 | # Set this such that the nano-RK directory is the base path |
| 13 | ROOT_DIR = ../../.. |
| 14 | |
| 15 | # Set platform specific defines |
| 16 | # The following will be defined based on the PLATFORM variable: |
| 17 | # PROG_TYPE (e.g. avrdude, or uisp) |
| 18 | # MCU (e.g. atmega32, atmega128, atmega1281) |
| 19 | # RADIO (e.g. cc2420) |
| 20 | include $(ROOT_DIR)/include/platform.mk |
| 21 | |
| 22 | |
| 23 | SRC = $(TARGET).c |
| 24 | SRC += $(ROOT_DIR)/src/net/rt_link/rt_link.c |
| 25 | SRC += $(ROOT_DIR)/src/net/rt_link/rtl_scheduler.c |
| 26 | SRC += $(ROOT_DIR)/src/net/rt_link/rtl_debug.c |
| 27 | |
| 28 | # Add extra source files. |
| 29 | # For example: |
| 30 | # SRC += $(ROOT_DIR)/src/platform/$(PLATFORM_TYPE)/source/my_src1.c |
| 31 | # SRC += $(ROOT_DIR)/src/platform/$(PLATFORM_TYPE)/source/my_src2.c |
| 32 | |
| 33 | # Add extra includes files. |
| 34 | # For example: |
| 35 | # EXTRAINCDIRS += $(ROOT_DIR)/src/platform/include |
| 36 | EXTRAINCDIRS += $(ROOT_DIR)/src/net/rt_link/ |
| 37 | EXTRAINCDIRS += $(ROOT_DIR)/src/net/rt_link/platform/$(PLATFORM_TYPE)/ |
| 38 | |
| 39 | |
| 40 | # This is where the final compile and download happens |
| 41 | include $(ROOT_DIR)/include/platform/$(PLATFORM)/common.mk |
Note: See TracBrowser for help on using the browser.
