Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
util_tx_test/Makefile@0:9002b89157da, 2018-04-11 (annotated)
- Committer:
- dgabino
- Date:
- Wed Apr 11 14:47:16 2018 +0000
- Revision:
- 0:9002b89157da
Initial commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| dgabino | 0:9002b89157da | 1 | ### Application-specific constants |
| dgabino | 0:9002b89157da | 2 | |
| dgabino | 0:9002b89157da | 3 | APP_NAME := util_tx_test |
| dgabino | 0:9002b89157da | 4 | |
| dgabino | 0:9002b89157da | 5 | ### Constant symbols |
| dgabino | 0:9002b89157da | 6 | |
| dgabino | 0:9002b89157da | 7 | CC := $(CROSS_COMPILE)gcc |
| dgabino | 0:9002b89157da | 8 | AR := $(CROSS_COMPILE)ar |
| dgabino | 0:9002b89157da | 9 | |
| dgabino | 0:9002b89157da | 10 | CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I. |
| dgabino | 0:9002b89157da | 11 | |
| dgabino | 0:9002b89157da | 12 | OBJDIR = obj |
| dgabino | 0:9002b89157da | 13 | INCLUDES = $(wildcard inc/*.h) |
| dgabino | 0:9002b89157da | 14 | |
| dgabino | 0:9002b89157da | 15 | ### General build targets |
| dgabino | 0:9002b89157da | 16 | |
| dgabino | 0:9002b89157da | 17 | all: $(APP_NAME) |
| dgabino | 0:9002b89157da | 18 | |
| dgabino | 0:9002b89157da | 19 | clean: |
| dgabino | 0:9002b89157da | 20 | rm -f $(OBJDIR)/*.o |
| dgabino | 0:9002b89157da | 21 | rm -f $(APP_NAME) |
| dgabino | 0:9002b89157da | 22 | |
| dgabino | 0:9002b89157da | 23 | ### Sub-modules compilation |
| dgabino | 0:9002b89157da | 24 | |
| dgabino | 0:9002b89157da | 25 | $(OBJDIR): |
| dgabino | 0:9002b89157da | 26 | mkdir -p $(OBJDIR) |
| dgabino | 0:9002b89157da | 27 | |
| dgabino | 0:9002b89157da | 28 | $(OBJDIR)/%.o: src/%.c $(INCLUDES) | $(OBJDIR) |
| dgabino | 0:9002b89157da | 29 | $(CC) -c $(CFLAGS) $< -o $@ |
| dgabino | 0:9002b89157da | 30 | |
| dgabino | 0:9002b89157da | 31 | ### Main program assembly |
| dgabino | 0:9002b89157da | 32 | |
| dgabino | 0:9002b89157da | 33 | $(APP_NAME): $(OBJDIR)/$(APP_NAME).o $(OBJDIR)/base64.o |
| dgabino | 0:9002b89157da | 34 | $(CC) $< $(OBJDIR)/base64.o -o $@ |
| dgabino | 0:9002b89157da | 35 | |
| dgabino | 0:9002b89157da | 36 | ### EOF |