mirror of
https://github.com/tidklaas/rtl8710_tools.git
synced 2025-07-31 20:01:05 +00:00
Add OTA Update Server
This commit is contained in:
parent
4dfd634a11
commit
e80d6acc4f
3 changed files with 338 additions and 0 deletions
44
Makefile
Normal file
44
Makefile
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
################################################
|
||||
# Toplevel makefile for rtl8710_tools code #
|
||||
################################################
|
||||
|
||||
ifeq ($(V),)
|
||||
Q := @
|
||||
# Do not print "Entering directory ...".
|
||||
MAKEFLAGS += --no-print-directory
|
||||
endif
|
||||
|
||||
$(info Making "$(MAKECMDGOALS)")
|
||||
|
||||
# Build directory
|
||||
ifdef O
|
||||
BUILD_DIR := $(shell readlink -f $(O))
|
||||
else
|
||||
BUILD_DIR := $(CURDIR)/build
|
||||
endif
|
||||
|
||||
# Source directory
|
||||
SRC_DIR := $(CURDIR)/src
|
||||
BIN_DIR := $(BUILD_DIR)
|
||||
|
||||
# Configure toolchain
|
||||
|
||||
CC := gcc
|
||||
LD ?= gcc
|
||||
|
||||
SRC := $(wildcard $(SRC_DIR)/*.c)
|
||||
BINS := $(subst $(SRC_DIR),$(BIN_DIR), $(SRC:%.c=%))
|
||||
|
||||
CFLAGS += -I$(SRC_DIR) -Wall
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
all: $(BINS)
|
||||
|
||||
$(BIN_DIR)/%: $(SRC_DIR)/%.c
|
||||
$(Q)mkdir -p `dirname $@`
|
||||
$(if $(Q), @echo " (CC) $(subst $(BIN_DIR)/,,$@)")
|
||||
$(Q)$(CC) $(CPPFLAGS) -I`dirname $<` -o $@ $<
|
||||
|
||||
clean:
|
||||
$(Q)rm -rf $(BIN_DIR)
|
||||
Loading…
Add table
Add a link
Reference in a new issue