You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
40 lines
1.0 KiB
################################################################################
|
|
# Copyright (c) Hisilicon Technologies Co., Ltd. 2014-2020. All rights reserved.
|
|
# Description: Makefile
|
|
# Author: SmartMedia_BSP
|
|
# Create: 2014-06-04
|
|
################################################################################
|
|
|
|
CC := gcc
|
|
RM := rm
|
|
TOPDIR := .
|
|
|
|
CFLAGS := -Wall -s -DNDEBUG -O2
|
|
CFLAGS += -I$(TOPDIR)/../libs/secure_c/include -static
|
|
LDFLAGS := -L$(TOPDIR)/../libs/secure_c/lib -lsecurec
|
|
SECUREC := $(TOPDIR)/../libs/secure_c/source
|
|
|
|
TARGET := mksym
|
|
|
|
all: $(TARGET)
|
|
|
|
deflate: deflate.c
|
|
$(Q)$(CC) $(CFLAGS) deflate.c -o deflate
|
|
|
|
mksym: lib_securec
|
|
$(Q)$(CC) $(CFLAGS) mksym.c -o mksym $(LDFLAGS)
|
|
|
|
lib_securec:
|
|
$(Q)cp -f $(TOPDIR)/Makefile.fbltools $(SECUREC)/
|
|
$(Q)make -C $(SECUREC) -f Makefile.fbltools lib
|
|
|
|
mkbootargs: mkbootargs.c
|
|
$(Q)$(CC) $(CFLAGS) mkbootargs.c -o mkbootargs
|
|
|
|
clean:
|
|
$(Q)cp -f $(TOPDIR)/Makefile.fbltools $(SECUREC)/
|
|
$(Q)make -C $(SECUREC) -f Makefile.fbltools clean
|
|
$(Q)$(RM) -f $(TARGET)
|
|
|
|
distclean: clean
|