source: tools/xupnpd/xupnpd/src/Makefile @ 40259

Last change on this file since 40259 was 40259, checked in by gost, 7 years ago

[tools] add my owne bouquet2m3u

File size: 4.5 KB
Line 
1LUA     = lua-5.1.4
2#LUA     = lua-5.2.0
3STATIC  = false
4
5CFLAGS  = --sysroot=/home/gost4711/openatv/build-enviroment/builds/openatv/release/vuuno4k/tmp/sysroots/vuuno4k -fno-exceptions -fno-rtti -O2 -I$(LUA) -L$(LUA)
6SRC     = main.cpp soap.cpp mem.cpp mcast.cpp luaxlib.cpp luaxcore.cpp luajson.cpp luajson_parser.cpp
7LUAMYCFLAGS = -DLUA_USE_LINUX
8
9SDK_8_09 = /u01/home/shocker_old/staff/openwrt_8_09/staging_dir
10SDK_BACKFIRE = /u01/home/shocker_old/staff/openwrt/staging_dir
11SDK_BBREAKER = /home/shocker/staff/openwrt/staging_dir
12
13ifeq ($(STATIC),true)
14CFLAGS+=-static
15LUAMYCFLAGS+=-static
16endif
17
18x86:
19        make -C $(LUA) CC=gcc a
20        gcc -O2 -c -o md5.o md5c.c
21        gcc $(CFLAGS) -DWITH_LIBUUID -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o xupnpd $(SRC) md5.o -llua -ldl -lm -luuid
22        strip xupnpd
23
24# Cygwin
25x86win:
26        make -C $(LUA) CC=gcc a
27        gcc -O2 -c -o md5.o md5c.c
28        gcc $(CFLAGS) -DWITH_LIBUUID -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_UNDER_WIN -o xupnpd $(SRC) md5.o -llua -ldl -lm -luuid
29        strip xupnpd
30
31x86_bsd:
32        make -C $(LUA) CC=gcc a
33        gcc -O2 -c -o md5.o md5c.c
34        gcc $(CFLAGS) -DINET -DWITH_LIBUUID -o xupnpd $(SRC) md5.o -llua -lm
35        strip xupnpd
36
37
38# D-Link DIR-320/DD-WRT (mipsel)
39bcm947x_ddwrt:
40        $(MAKE) embedded TARGET=bcm947x-ddwrt SDK=$(SDK_8_09)/toolchain-mipsel_gcc3.4.6/mipsel-linux/bin UTILS=$(SDK_8_09)/toolchain-mipsel_gcc3.4.6/libexec/gcc/mipsel-linux-uclibc/3.4.6 STAGING_DIR=$(SDK_8_09)
41
42# OpenWrt Backfire
43bcm947x_backfire:
44        $(MAKE) embedded TARGET=bcm947x-bf SDK=$(SDK_BACKFIRE)/toolchain-mipsel_gcc-3.4.6-bcm947xx/mipsel-openwrt-linux/bin UTILS=$(SDK_BACKFIRE)/toolchain-mipsel_gcc-3.4.6-bcm947xx/libexec/gcc/mipsel-openwrt-linux-uclibc/3.4.6 STAGING_DIR=$(SDK_BACKFIRE)
45
46ar71xx_backfire:
47        $(MAKE) embedded TARGET=ar71xx-bf SDK=$(SDK_BACKFIRE)/toolchain-mips_r2_gcc-4.3.3+cs-ar71xx/mips-openwrt-linux/bin UTILS=$(SDK_BACKFIRE)/toolchain-mips_r2_gcc-4.3.3+cs-ar71xx/libexec/gcc/mips-openwrt-linux-uclibc/4.3.3 STAGING_DIR=$(SDK_BACKFIRE)
48
49ar231x_backfire:
50        $(MAKE) embedded TARGET=ar231x-bf SDK=$(SDK_BACKFIRE)/toolchain-mips_gcc-4.3.3+cs-ar231x/mips-openwrt-linux/bin UTILS=$(SDK_BACKFIRE)/toolchain-mips_gcc-4.3.3+cs-ar231x/libexec/gcc/mips-openwrt-linux-uclibc/4.3.3 STAGING_DIR=$(SDK_BACKFIRE)
51
52
53# OpenWrt Barrier Breaker
54
55# Broadcom BCM2708/BCM2835
56bcm2708:
57        $(MAKE) embedded TARGET=bcm2708 SDK=$(SDK_BBREAKER)/toolchain-arm_arm1176jzf-s+vfp_gcc-4.8-linaro-bcm2708/arm-openwrt-linux/bin UTILS=$(SDK_BBREAKER)/toolchain-arm_arm1176jzf-s+vfp_gcc-4.8-linaro-bcm2708/libexec/gcc/arm-openwrt-linux-uclibcgnueabi/4.8.3 STAGING_DIR=$(SDK_BBREAKER)
58
59# Broadcom BCM47xx/BCM53xx (MIPS)
60bcm47xx:
61        $(MAKE) embedded TARGET=bcm47xx SDK=$(SDK_BBREAKER)/toolchain-mipsel_mips32_gcc-4.8-linaro-bcm47xx/mipsel-openwrt-linux/bin UTILS=$(SDK_BBREAKER)/toolchain-mipsel_mips32_gcc-4.8-linaro-bcm47xx/libexec/gcc/mipsel-openwrt-linux-uclibc/4.8.3 STAGING_DIR=$(SDK_BBREAKER)
62
63# Broadcom BCM63xx
64bcm63xx:
65        $(MAKE) embedded TARGET=bcm63xx SDK=$(SDK_BBREAKER)/toolchain-mips_mips32_gcc-4.8-linaro-bcm63xx/mips-openwrt-linux/bin UTILS=$(SDK_BBREAKER)/toolchain-mips_mips32_gcc-4.8-linaro-bcm63xx/libexec/gcc/mips-openwrt-linux-uclibc/4.8.3 STAGING_DIR=$(SDK_BBREAKER)
66
67# Atheros AR231x/AR5312
68ar231x:
69        $(MAKE) embedded TARGET=ar231x SDK=$(SDK_BBREAKER)/toolchain-mips_mips32_gcc-4.8-linaro-ar231x/mips-openwrt-linux/bin UTILS=$(SDK_BBREAKER)/toolchain-mips_mips32_gcc-4.8-linaro-ar231x/libexec/gcc/mips-openwrt-linux-uclibc/4.8.3 STAGING_DIR=$(SDK_BBREAKER)
70
71# Atheros AR7xxx/AR9xxx
72ar7xxx:
73        $(MAKE) embedded TARGET=ar7xxx SDK=$(SDK_BBREAKER)/toolchain-mips_34kc_gcc-4.8-linaro-ar7xxx/mips-openwrt-linux/bin UTILS=$(SDK_BBREAKER)/toolchain-mips_34kc_gcc-4.8-linaro-ar7xxx/libexec/gcc/mips-openwrt-linux-uclibc/4.8.3 STAGING_DIR=$(SDK_BBREAKER)
74
75
76# Other
77samsung_d:
78        $(MAKE) embedded TARGET=arm-v7a8 SDK=/opt/VDLinux-armv7a8/bin
79
80samsung_c:
81        $(MAKE) embedded TARGET=arm-v7_vfp_le SDK=/opt/arm_v7_vfp_le/bin
82
83dreambox:
84        $(MAKE) embedded TARGET=mipsel_dreambox SDK=/opt/mipsel-unknown-linux-gnu/bin
85
86arm:
87        $(MAKE) embedded TARGET=arm-oe-linux-gnueabi SDK=/home/gost4711/openatv/build-enviroment/builds/openatv/release/vuuno4k/tmp/sysroots/x86_64-linux/usr/bin/arm-oe-linux-gnueabi
88
89
90embedded:
91        PATH=$(PATH):$(UTILS) make -C $(LUA) CC=$(SDK)/gcc a MYCFLAGS='$(LUAMYCFLAGS)'
92        $(SDK)/arm-oe-linux-gnueabi-gcc $(CFLAGS) -mhard-float -O2 -c -o md5.o md5c.c
93        $(SDK)/arm-oe-linux-gnueabi-gcc $(CFLAGS) -mhard-float -B$(UTILS) -DWITH_URANDOM -o xupnpd-$(TARGET) $(SRC) md5.o -llua -lm -ldl
94        $(SDK)/arm-oe-linux-gnueabi-strip xupnpd-$(TARGET)
95
96clean:
97        make -C $(LUA) clean
98        rm -f $(LUA)/liblua.a
99        rm -f md5.o
Note: See TracBrowser for help on using the repository browser.