3210bb3e763791e7f8d044918d70e862b319a4a3
[openwrt/svn-archive/archive.git] / tools / sdcc / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=sdcc
10 PKG_VERSION:=3.0.0
11
12 PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
14 PKG_MD5SUM:=20fbd49a3421e09fe65577c45524c89e
15
16 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 HOST_LDFLAGS += $(HOST_STATIC_LINKING)
21 HOST_CONFIGURE_ARGS += \
22 --disable-ucsim \
23 --enable-packihx \
24 --enable-sdcpp \
25 --disable-sdcdb \
26 --disable-gbz80-port \
27 --disable-z80-port \
28 --disable-ds390-port \
29 --disable-ds400-port \
30 --disable-pic-port \
31 --disable-pic16-port \
32 --disable-hc08-port \
33 --disable-avr-port \
34 --disable-xa51-port \
35 --enable-mcs51-port \
36 --enable-device-lib \
37
38 define Host/Clean
39 -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
40 $(call Host/Clean/Default)
41 endef
42
43 $(eval $(call HostBuild))