xref: /freebsd/sys/contrib/dev/mwl/Makefile (revision 87c1627502a5dde91e5284118eec8682b60f27a2)
1#	$FreeBSD$
2
3FILES=	mw88W8363.fw.uu mwlboot.fw.uu
4
5mw88W8363.fw.uu: mv88W8363fw.h LICENSE
6	(cat mv88W8363fw.h; \
7	 echo 'int main(void) { \
8	     write(1, fmimage, sizeof(fmimage)); return 0; \
9	 }') | ${CC} -o build -x c -
10	(sed 's/^/# /' LICENSE; ./build | uuencode mw88W8363.fw) > ${.TARGET}
11
12mwlboot.fw.uu: mvbootfw.h LICENSE
13	(cat mvbootfw.h; \
14	 echo 'int main(void) { \
15	     write(1, hlpimage, sizeof(hlpimage)); return 0; \
16	 }') | ${CC} -o build -x c -
17	(sed 's/^/# /' LICENSE; ./build | uuencode mwlboot.fw) > ${.TARGET}
18
19clean:
20	rm -f build build.c ${FILES}
21
22.include <bsd.prog.mk>
23