-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
40 lines (29 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
################################################################################
# Copyright (c) 2010-2011 Bryce Lelbach
#
# Distributed under the Boost Software License, Version 1.0.
# Full text: http://www.boost.org/LICENSE_1_0.txt.
################################################################################
SHELL=/bin/sh
ifndef LINUXDIR
RUNNING_REL := $(shell uname -r)
LINUXDIR := $(shell if [ -e /lib/modules/$(RUNNING_REL)/source ]; then \
echo /lib/modules/$(RUNNING_REL)/source; \
else echo /lib/modules/$(RUNNING_REL)/build; fi)
endif
obj-m += wl.o
wl-objs := src/linux_osl.o \
src/wl_linux.o \
src/wl_iw.o
EXTRA_CFLAGS := -I$(M)/include
ifeq ($(CONFIG_X86_64),y)
EXTRA_LDFLAGS := $(M)/bin/wlc_hybrid.x86_64.bin
else
EXTRA_LDFLAGS := $(M)/bin/wlc_hybrid.x86_32.bin
endif
all:
KBUILD_NOPEDANTIC=1 make -C $(LINUXDIR) M=`pwd` modules
clean:
KBUILD_NOPEDANTIC=1 make -C $(LINUXDIR) M=`pwd` clean
install:
KBUILD_NOPEDANTIC=1 make -C $(LINUXDIR) M=`pwd` modules_install