xref: /freebsd/sys/contrib/dev/ral/Makefile (revision 39beb93c3f8bdbf72a61fda42300b5ebed7390c8)
1#	$FreeBSD$
2
3FILES=	rt2561s.fw.uu rt2561.fw.uu rt2661.fw.uu rt2860.fw.uu
4
5rt2561s.fw.uu: rt2661_ucode.h LICENSE
6	(cat rt2661_ucode.h; \
7	 echo 'int main(void) { \
8	     write(1, rt2561s_ucode, sizeof(rt2561s_ucode)); return 0; \
9	 }') | ${CC} -o build -x c -
10	(sed 's/^/# /' LICENSE; ./build | uuencode rt2561s.fw) > ${.TARGET}
11
12rt2561.fw.uu: rt2661_ucode.h LICENSE
13	(cat rt2661_ucode.h; \
14	 echo 'int main(void) { \
15	     write(1, rt2561_ucode, sizeof(rt2561_ucode)); return 0; \
16	 }') | ${CC} -o build -x c -
17	(sed 's/^/# /' LICENSE; ./build | uuencode rt2561.fw) > ${.TARGET}
18
19rt2661.fw.uu: rt2661_ucode.h LICENSE
20	(cat rt2661_ucode.h; \
21	 echo 'int main(void) { \
22	     write(1, rt2661_ucode, sizeof(rt2661_ucode)); return 0; \
23	 }') | ${CC} -o build -x c -
24	(sed 's/^/# /' LICENSE; ./build | uuencode rt2661.fw) > ${.TARGET}
25
26rt2860.fw.uu: rt2661_ucode.h LICENSE
27	(cat rt2661_ucode.h; \
28	 echo 'int main(void) { \
29	     write(1, rt2860_ucode, sizeof(rt2860_ucode)); return 0; \
30	 }') | ${CC} -o build -x c -
31	(sed 's/^/# /' LICENSE; ./build | uuencode rt2860.fw) > ${.TARGET}
32
33clean:
34	rm -f build build.c ${FILES}
35
36.include <bsd.prog.mk>
37