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_sink/Makefile
- Committer:
- dgabino
- Date:
- 2018-04-11
- Revision:
- 0:9002b89157da
File content as of revision 0:9002b89157da:
### Application-specific constants
APP_NAME := util_sink
### Constant symbols
CC := $(CROSS_COMPILE)gcc
AR := $(CROSS_COMPILE)ar
CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I.
OBJDIR = obj
### General build targets
all: $(APP_NAME)
clean:
rm -f $(OBJDIR)/*.o
rm -f $(APP_NAME)
### Main program compilation and assembly
$(OBJDIR):
mkdir -p $(OBJDIR)
$(OBJDIR)/%.o: src/%.c | $(OBJDIR)
$(CC) -c $(CFLAGS) $< -o $@
$(APP_NAME): $(OBJDIR)/$(APP_NAME).o
$(CC) $< -o $@
### EOF