mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2024-11-15 03:25:35 +00:00
ecb4c6f27f
Reoson: integrate WiFi code and fix build error Test: i.MX 8M mini Change-Id: I88f6deadc6638a99627f31741da0be7167827c76
59 lines
1.2 KiB
Makefile
59 lines
1.2 KiB
Makefile
# File : mlanutl/Makefile
|
|
#
|
|
# Copyright 2011-2022 NXP
|
|
|
|
# Path to the top directory of the wlan distribution
|
|
PATH_TO_TOP = ../..
|
|
|
|
# Determine how we should copy things to the install directory
|
|
ABSPATH := $(filter /%, $(INSTALLDIR))
|
|
RELPATH := $(filter-out /%, $(INSTALLDIR))
|
|
INSTALLPATH := $(ABSPATH)
|
|
ifeq ($(strip $(INSTALLPATH)),)
|
|
INSTALLPATH := $(PATH_TO_TOP)/$(RELPATH)
|
|
endif
|
|
|
|
# Override CFLAGS for application sources, remove __ kernel namespace defines
|
|
CFLAGS := $(filter-out -D__%, $(ccflags-y))
|
|
# remove KERNEL include dir
|
|
CFLAGS := $(filter-out -I$(KERNELDIR)%, $(CFLAGS))
|
|
|
|
|
|
#CFLAGS += -DAP22 -fshort-enums
|
|
CFLAGS += -Wall
|
|
CFLAGS += -Wno-stringop-truncation
|
|
#ECHO = @
|
|
ifeq (,$(findstring ANDROID_KERNEL, $(CFLAGS)))
|
|
LIBS=-lrt
|
|
endif
|
|
|
|
.PHONY: default tags all
|
|
|
|
OBJECTS = mlanutl.o
|
|
HEADERS = mlanutl.h
|
|
|
|
|
|
|
|
|
|
|
|
exectarget=mlanutl
|
|
TARGET := $(exectarget)
|
|
|
|
build appsbuild default: $(TARGET)
|
|
@cp -f $(TARGET) $(INSTALLPATH)
|
|
|
|
all : tags default
|
|
|
|
$(TARGET): $(OBJECTS) $(HEADERS)
|
|
$(ECHO)$(CC) $(LIBS) -o $@ $(OBJECTS)
|
|
|
|
%.o: %.c $(HEADERS)
|
|
$(ECHO)$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
tags:
|
|
ctags -R -f tags.txt
|
|
|
|
distclean clean:
|
|
$(ECHO)$(RM) $(OBJECTS) $(TARGET)
|
|
$(ECHO)$(RM) tags.txt
|
|
|