]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/contrib/dev/ral/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / contrib / dev / ral / Makefile
1 #       $FreeBSD$
2
3 FILES=  rt2561s.fw.uu rt2561.fw.uu rt2661.fw.uu rt2860.fw.uu
4
5 rt2561s.fw.uu: microcode.h LICENSE
6         (echo '#include <stdint.h>'; \
7          cat microcode.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}
12
13 rt2561.fw.uu: microcode.h LICENSE
14         (echo '#include <stdint.h>'; \
15          cat microcode.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}
20
21 rt2661.fw.uu: microcode.h LICENSE
22         (echo '#include <stdint.h>'; \
23          cat microcode.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}
28
29 rt2860.fw.uu: microcode.h LICENSE
30         (echo '#include <stdint.h>'; \
31          cat microcode.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}
36
37 clean:
38         rm -f build build.c ${FILES}
39
40 .include <bsd.prog.mk>