mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-05 13:19:49 +00:00
C version of #1006 Note that I switched all the C builds to use -O2 and that meant that the compiler found some more warnings so I also fixed these up. The possibly undefined ones were harmless, the aliasing one is now more correct. As these are small programs, the caching from `docker build` makes no real difference, and worst case compile time is much better. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
14 lines
377 B
Makefile
14 lines
377 B
Makefile
# Tag: ac075fed7c87e4af30d8490ae0504166cceb0df3
|
|
C_COMPILE=mobylinux/c-compile@sha256:0e82d441ce112d638f904a08199c76b022c065a2dbf8908bb366755267d4417f
|
|
|
|
default: sbin/tap-vsockd
|
|
|
|
DEPS=$(wildcard *.c *.h)
|
|
|
|
sbin/tap-vsockd: $(DEPS)
|
|
mkdir -p $(dir $@)
|
|
tar cf - $(DEPS) | docker run --rm --net=none --log-driver=none -i $(C_COMPILE) -o $@ -lpthread | tar xf -
|
|
|
|
clean:
|
|
rm -rf sbin
|