Simplify 'test' target in libs/network/Makefile

This commit is contained in:
Kamil Shakirov 2020-03-02 16:27:55 +06:00
parent 052c98d86e
commit 30830de5b7

View File

@ -47,9 +47,9 @@ clean :
rm -rf $(OBJS) $(LIBTARGET) $(DYLIBTARGET) build
test: build test.c
cp $(DYLIBTARGET) lib$(DYLIBTARGET) # to make C linker happy
$(CC) -o network-tests -L. -I. test.c -l$(LIBNAME)
$(CC) -o network-tests -L. -I. test.c $(DYLIBTARGET)
LD_LIBRARY_PATH=. ./network-tests
@rm -f ./network-tests
./lib-tests
$(OBJS): $(HDRS)