hostapd: wpas: add missing config symbols
[openwrt/openwrt.git] / target / sdk / files / Makefile
1 # Makefile for OpenWrt
2 #
3 # Copyright (C) 2007-2015 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 TOPDIR:=${CURDIR}
10 LC_ALL:=C
11 LANG:=C
12 SDK:=1
13 export TOPDIR LC_ALL LANG SDK
14
15 world:
16
17 DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep -E '\/usr' | head -n 1)
18 export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
19
20 ifneq ($(OPENWRT_BUILD),1)
21 override OPENWRT_BUILD=1
22 export OPENWRT_BUILD
23
24 empty:=
25 space:= $(empty) $(empty)
26 _SINGLE=export MAKEFLAGS=$(space);
27
28 include $(TOPDIR)/include/debug.mk
29 include $(TOPDIR)/include/depends.mk
30 include $(TOPDIR)/include/toplevel.mk
31 else
32 include rules.mk
33 include $(INCLUDE_DIR)/depends.mk
34 include $(INCLUDE_DIR)/subdir.mk
35 include package/Makefile
36
37 $(package/stamp-compile): $(BUILD_DIR)/.prepared
38 $(BUILD_DIR)/.prepared: Makefile
39 @mkdir -p $$(dirname $@)
40 @touch $@
41
42 clean: FORCE
43 git clean -f -d $(STAGING_DIR); true
44 git clean -f -d $(BUILD_DIR); true
45 git clean -f -d $(BIN_DIR); true
46
47 dirclean: clean
48 git reset --hard HEAD
49 git clean -f -d
50 rm -rf feeds/
51
52 # check prerequisites before starting to build
53 prereq: $(package/stamp-prereq) ;
54
55 world: prepare $(package/stamp-compile) FORCE
56 @$(MAKE) package/index
57
58 .PHONY: clean dirclean prereq prepare world
59
60 endif