File 'lib2-v2.so' generated from its own source

Instead of being a copy of 'lib2.so', 'lib2-v2.so' has its own source
file ('lib22.c'), so that the test can distinguish both libraries.
This commit is contained in:
Roberto Ierusalimschy
2019-05-03 10:36:19 -03:00
parent 7c5786479c
commit 01bded3d8c
3 changed files with 28 additions and 3 deletions

View File

@@ -23,5 +23,5 @@ lib2.so: lib2.c $(LUA_DIR)/luaconf.h $(LUA_DIR)/ltests.h
lib21.so: lib21.c $(LUA_DIR)/luaconf.h $(LUA_DIR)/ltests.h
$(CC) $(CFLAGS) -o lib21.so lib21.c
lib2-v2.so: lib2.so
cp lib2.so ./lib2-v2.so
lib2-v2.so: lib21.c $(LUA_DIR)/luaconf.h $(LUA_DIR)/ltests.h
$(CC) $(CFLAGS) -o lib2-v2.so lib22.c