Add socktest to makefile
This commit is contained in:
parent
02f308ffbd
commit
cc557ed1b9
24
Makefile
24
Makefile
@ -11,7 +11,7 @@ X86_64_CFLAGS := --target=x86_64-linux-gnu
|
|||||||
|
|
||||||
AARCH64_CFLAGS := --target=aarch64-linux-gnu
|
AARCH64_CFLAGS := --target=aarch64-linux-gnu
|
||||||
|
|
||||||
all: buildtest
|
all: buildtest socktest
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(bindir)/*
|
rm $(bindir)/*
|
||||||
@ -21,9 +21,10 @@ $(bindir)/:
|
|||||||
|
|
||||||
headers := sys.h int.h
|
headers := sys.h int.h
|
||||||
buildtest: $(bindir)/bldtst $(bindir)/bldtst_llvm $(bindir)/bldtst_x64 $(bindir)/bldtst_aarch64 $(bindir)/bldtst_mips $(bindir)/bldtst_mipsel
|
buildtest: $(bindir)/bldtst $(bindir)/bldtst_llvm $(bindir)/bldtst_x64 $(bindir)/bldtst_aarch64 $(bindir)/bldtst_mips $(bindir)/bldtst_mipsel
|
||||||
|
socktest: $(bindir)/socktest $(bindir)/socktest_llvm $(bindir)/socktest_x64 $(bindir)/socktest_aarch64 $(bindir)/socktest_mips $(bindir)/socktest_mipsel
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all clean buildtest
|
.PHONY: all clean buildtest socktest
|
||||||
|
|
||||||
|
|
||||||
${bindir}/bldtst: buildtest.c $(headers) arch/* | $(bindir)/
|
${bindir}/bldtst: buildtest.c $(headers) arch/* | $(bindir)/
|
||||||
@ -43,3 +44,22 @@ ${bindir}/bldtst_mips: $(headers) buildtest.c arch/mips.c arch/generic.h | $(bin
|
|||||||
|
|
||||||
${bindir}/bldtst_mipsel: $(headers) buildtest.c arch/mips.c arch/generic.h | $(bindir)/
|
${bindir}/bldtst_mipsel: $(headers) buildtest.c arch/mips.c arch/generic.h | $(bindir)/
|
||||||
clang $(MIPSEL_CFLAGS) $(CFLAGS) $(CLANG_WNO) -o $@ buildtest.c arch/mips.c
|
clang $(MIPSEL_CFLAGS) $(CFLAGS) $(CLANG_WNO) -o $@ buildtest.c arch/mips.c
|
||||||
|
|
||||||
|
|
||||||
|
${bindir}/socktest: socktest.c $(headers) arch/* | $(bindir)/
|
||||||
|
gcc $(CFLAGS) $(GCC_WNO) -o $@ socktest.c arch/*.c
|
||||||
|
|
||||||
|
${bindir}/socktest_llvm: $(headers) socktest.c arch/* | $(bindir)/
|
||||||
|
clang $(CFLAGS) $(CLANG_WNO) -o $@ socktest.c arch/*.c
|
||||||
|
|
||||||
|
${bindir}/socktest_x64: $(headers) socktest.c arch/x86_64.c arch/generic.h | $(bindir)/
|
||||||
|
clang $(X86_64_CFLAGS) $(CFLAGS) $(CLANG_WNO) -o $@ socktest.c arch/x86_64.c
|
||||||
|
|
||||||
|
${bindir}/socktest_aarch64: $(headers) socktest.c arch/aarch64.c arch/generic.h | $(bindir)/
|
||||||
|
clang $(AARCH64_CFLAGS) $(CFLAGS) $(CLANG_WNO) -o $@ socktest.c arch/aarch64.c
|
||||||
|
|
||||||
|
${bindir}/socktest_mips: $(headers) socktest.c arch/mips.c arch/generic.h | $(bindir)/
|
||||||
|
clang $(MIPS_CFLAGS) $(CFLAGS) $(CLANG_WNO) -o $@ socktest.c arch/mips.c
|
||||||
|
|
||||||
|
${bindir}/socktest_mipsel: $(headers) socktest.c arch/mips.c arch/generic.h | $(bindir)/
|
||||||
|
clang $(MIPSEL_CFLAGS) $(CFLAGS) $(CLANG_WNO) -o $@ socktest.c arch/mips.c
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user