root/nano-RK/projects/basic_task_stats/makefile
| Revision 476, 1.1 kB (checked in by agr, 6 months ago) |
|---|
| Line | |
|---|---|
| 1 | # Platform name cc2420DK, firefly, micaZ, firefly2_1, 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 |
| 10 | |
| 11 | |
| 12 | # PROGRAMMING_PORT = `ls /dev/tty.* | grep usb | head -n 1` # programmer connected to serial device |
| 13 | |
| 14 | # Set this such that the nano-RK directory is the base path |
| 15 | ROOT_DIR = ../.. |
| 16 | |
| 17 | # Set platform specific defines |
| 18 | # The following will be defined based on the PLATFORM variable: |
| 19 | # PROG_TYPE (e.g. avrdude, or uisp) |
| 20 | # MCU (e.g. atmega32, atmega128, atmega1281) |
| 21 | # RADIO (e.g. cc2420) |
| 22 | include $(ROOT_DIR)/include/platform.mk |
| 23 | |
| 24 | |
| 25 | SRC = $(TARGET).c |
| 26 | |
| 27 | # Add extra source files. |
| 28 | # For example: |
| 29 | # SRC += $(ROOT_DIR)/src/platform/$(PLATFORM_TYPE)/source/my_src1.c |
| 30 | # SRC += $(ROOT_DIR)/src/platform/$(PLATFORM_TYPE)/source/my_src2.c |
| 31 | |
| 32 | # Add extra includes files. |
| 33 | # For example: |
| 34 | # EXTRAINCDIRS += $(ROOT_DIR)/src/platform/include |
| 35 | EXTRAINCDIRS = |
| 36 | |
| 37 | |
| 38 | # This is where the final compile and download happens |
| 39 | include $(ROOT_DIR)/include/platform/$(PLATFORM)/common.mk |
Note: See TracBrowser for help on using the browser.
