| 1 | AM_CFLAGS = -pedantic -Wall -W -std=gnu99 -DDATADIR=\"$(pkgdatadir)\" |
| 2 | |
| 3 | xbboot_version.h: |
| 4 | echo -e '#ifndef XBBOOT_VERSION' \ |
| 5 | '\n#define XBBOOT_VERSION "201007"' \ |
| 6 | '\n#endif' > xbboot_version.h |
| 7 | BUILT_SOURCES = xbboot_version.h |
| 8 | |
| 9 | bin_PROGRAMS = xbboot |
| 10 | xbboot_SOURCES = host_main.c |
| 11 | |
| 12 | pkgdatadir = $(datadir)/xburst-tools/ |
| 13 | |
| 14 | if COND_FIRMWARE |
| 15 | pkgdata_DATA = ../target-stage1/stage1.bin |
| 16 | endif |
| 17 | |
| 18 | EXTRA_DIST = $(pkgdatadir) |
| 19 | |
| 20 | ../target-stage1/stage1.bin: |
| 21 | $(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../target-stage1 |
| 22 | |