summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/ral/Makefile
blob: 8560f4267381a0fff83061ac3aa969d79bd9edaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#	$FreeBSD$

FILES=	rt2561s.fw.uu rt2561.fw.uu rt2661.fw.uu rt2860.fw.uu

rt2561s.fw.uu: rt2661_ucode.h LICENSE
	(cat rt2661_ucode.h; \
	 echo 'int main(void) { \
	     write(1, rt2561s_ucode, sizeof(rt2561s_ucode)); return 0; \
	 }') | ${CC} -o build -x c -
	(sed 's/^/# /' LICENSE; ./build | uuencode rt2561s.fw) > ${.TARGET}

rt2561.fw.uu: rt2661_ucode.h LICENSE
	(cat rt2661_ucode.h; \
	 echo 'int main(void) { \
	     write(1, rt2561_ucode, sizeof(rt2561_ucode)); return 0; \
	 }') | ${CC} -o build -x c -
	(sed 's/^/# /' LICENSE; ./build | uuencode rt2561.fw) > ${.TARGET}

rt2661.fw.uu: rt2661_ucode.h LICENSE
	(cat rt2661_ucode.h; \
	 echo 'int main(void) { \
	     write(1, rt2661_ucode, sizeof(rt2661_ucode)); return 0; \
	 }') | ${CC} -o build -x c -
	(sed 's/^/# /' LICENSE; ./build | uuencode rt2661.fw) > ${.TARGET}

rt2860.fw.uu: rt2661_ucode.h LICENSE
	(cat rt2661_ucode.h; \
	 echo 'int main(void) { \
	     write(1, rt2860_ucode, sizeof(rt2860_ucode)); return 0; \
	 }') | ${CC} -o build -x c -
	(sed 's/^/# /' LICENSE; ./build | uuencode rt2860.fw) > ${.TARGET}

clean:
	rm -f build build.c ${FILES}

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud