2010-04-29 09:48:48 +03:00
|
|
|
AM_CFLAGS = -pedantic -Wall -W -std=gnu99 -DDATADIR=\"$(pkgdatadir)\"
|
2009-08-21 09:04:09 +03:00
|
|
|
|
|
|
|
xbboot_version.h:
|
|
|
|
echo -e '#ifndef XBBOOT_VERSION' \
|
2010-04-27 08:51:54 +03:00
|
|
|
'\n#define XBBOOT_VERSION "20100427-1"' \
|
2009-08-21 09:04:09 +03:00
|
|
|
'\n#endif' > xbboot_version.h
|
|
|
|
BUILT_SOURCES = xbboot_version.h
|
|
|
|
|
|
|
|
bin_PROGRAMS = xbboot
|
|
|
|
xbboot_SOURCES = host_main.c
|
|
|
|
|
|
|
|
prefix = /usr
|
2010-04-28 13:06:28 +03:00
|
|
|
pkgdatadir = $(datadir)/xburst-tools/
|
2009-08-21 09:04:09 +03:00
|
|
|
|
2010-04-28 12:03:43 +03:00
|
|
|
if COND_FIRMWARE
|
|
|
|
pkgdata_DATA = ../target-stage1/stage1.bin
|
|
|
|
endif
|
2009-08-21 09:04:09 +03:00
|
|
|
|
2010-04-28 12:03:43 +03:00
|
|
|
EXTRA_DIST = $(pkgdatadir)
|
|
|
|
|
|
|
|
../target-stage1/stage1.bin:
|
|
|
|
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../target-stage1
|