1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 12:09:40 +02:00
xburst-tools/xbboot/host-app/Makefile.am
2010-12-23 21:34:09 +08:00

25 lines
584 B
Makefile

AM_CFLAGS = -pedantic -Wall -W -std=gnu99 -DDATADIR=\"$(pkgdatadir)\"
xbboot_version.h:
echo -e '#ifndef XBBOOT_VERSION' \
'\n#define XBBOOT_VERSION "201012"' \
'\n#endif' > xbboot_version.h
BUILT_SOURCES = xbboot_version.h
bin_PROGRAMS = xbboot
xbboot_SOURCES = host_main.c
pkgdatadir = $(datadir)/xburst-tools/
if COND_FIRMWARE
pkgdata_DATA = ../target-stage1/stage1.bin
endif
EXTRA_DIST = $(pkgdatadir)
../target-stage1/stage1.bin:
$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) -C ../target-stage1
clean-local:
$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) -C ../target-stage1 clean