mirror of
https://github.com/gnuton/asuswrt-merlin.ng.git
synced 2025-05-19 16:02:36 +02:00
37 lines
813 B
Makefile
37 lines
813 B
Makefile
# build file for epi_ttcp
|
|
#
|
|
|
|
PROGRAM_NAME:= epi_ttcp
|
|
|
|
CFLAGS= -Wall -s -Os -fomit-frame-pointer
|
|
LDFLAGS=-Os -Wl,-allow-shlib-undefined
|
|
|
|
ifeq ($(strip $(BUILD_EPITTCP)), static)
|
|
CFLAGS += -DBUILD_STATIC
|
|
endif
|
|
|
|
CFLAGS += -I$(TOOLCHAIN)/include
|
|
|
|
all: $(PROGRAM_NAME)
|
|
|
|
install: $(PROGRAM_NAME)
|
|
install -m 755 $(PROGRAM_NAME) $(INSTALL_DIR)/bin
|
|
$(STRIP) $(INSTALL_DIR)/bin/$(PROGRAM_NAME)
|
|
|
|
dynamic: $(PROGRAM_NAME) install
|
|
|
|
static: $(PROGRAM_NAME).a
|
|
|
|
ifneq ($(PREBUILT_BCMBIN),1)
|
|
$(PROGRAM_NAME): $(PROGRAM_NAME).o
|
|
$(CC) $(LDFLAGS) -o $(PROGRAM_NAME) $(PROGRAM_NAME).o
|
|
else
|
|
$(PROGRAM_NAME):
|
|
-cp -f $(TOP_PLATFORM)/wlan/epittcp/$(PRBM_DIR)/epi_ttcp ./
|
|
endif
|
|
|
|
$(PROGRAM_NAME).a: $(PROGRAM_NAME).o
|
|
$(AR) rcs $(PROGRAM_NAME).a $(PROGRAM_NAME).o
|
|
|
|
clean:
|
|
-rm -f $(PROGRAM_NAME) $(PROGRAM_NAME).a $(PROGRAM_NAME).o
|