3 FILES= rt2561s.fw.uu rt2561.fw.uu rt2661.fw.uu rt2860.fw.uu
5 rt2561s.fw.uu: microcode.h LICENSE
6 (echo '#include <stdint.h>'; \
8 echo 'int main(void) { \
9 write(1, rt2561s, sizeof(rt2561s)); return 0; \
10 }') | ${CC} -o build -x c -
11 (sed 's/^/# /' LICENSE; ./build | uuencode rt2561s.fw) > ${.TARGET}
13 rt2561.fw.uu: microcode.h LICENSE
14 (echo '#include <stdint.h>'; \
16 echo 'int main(void) { \
17 write(1, rt2561, sizeof(rt2561)); return 0; \
18 }') | ${CC} -o build -x c -
19 (sed 's/^/# /' LICENSE; ./build | uuencode rt2561.fw) > ${.TARGET}
21 rt2661.fw.uu: microcode.h LICENSE
22 (echo '#include <stdint.h>'; \
24 echo 'int main(void) { \
25 write(1, rt2661, sizeof(rt2661)); return 0; \
26 }') | ${CC} -o build -x c -
27 (sed 's/^/# /' LICENSE; ./build | uuencode rt2661.fw) > ${.TARGET}
29 rt2860.fw.uu: microcode.h LICENSE
30 (echo '#include <stdint.h>'; \
32 echo 'int main(void) { \
33 write(1, rt2860, sizeof(rt2860)); return 0; \
34 }') | ${CC} -o build -x c -
35 (sed 's/^/# /' LICENSE; ./build | uuencode rt2860.fw) > ${.TARGET}
38 rm -f build build.c ${FILES}
40 .include <bsd.prog.mk>