test: use `all: $(call NATIVE_STATICLIB,test)` to build a C lib.

This commit is contained in:
Eduard-Mihai Burtescu 2020-02-08 13:40:50 +02:00
parent d69b3b16e5
commit d20e4aa8e3
2 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,5 @@
-include ../tools.mk
all:
$(CC) -c test.c -o $(call STATICLIB,test) $(EXTRACFLAGS) $(EXTRACXXFLAGS)
all: $(call NATIVE_STATICLIB,test)
$(RUSTC) nonclike.rs -L$(TMPDIR) -ltest
$(call RUN,nonclike)

View File

@ -1,6 +1,5 @@
-include ../tools.mk
all:
$(CC) -c test.c -o $(call STATICLIB,test) $(EXTRACFLAGS) $(EXTRACXXFLAGS)
all: $(call NATIVE_STATICLIB,test)
$(RUSTC) nonclike.rs -L$(TMPDIR) -ltest
$(call RUN,nonclike)