makefile 790 B

123456789101112131415161718192021222324252627
  1. # change this variable to point to the directory with Lua headers
  2. # of the version being tested
  3. LUA_DIR = ../../
  4. CC = gcc
  5. # compilation should generate Dynamic-Link Libraries
  6. CFLAGS = -Wall -std=c99 -O2 -I$(LUA_DIR) -fPIC -shared
  7. # libraries used by the tests
  8. all: lib1.so lib11.so lib2.so lib21.so lib2-v2.so
  9. touch all
  10. lib1.so: lib1.c $(LUA_DIR)/luaconf.h $(LUA_DIR)/lua.h
  11. $(CC) $(CFLAGS) -o lib1.so lib1.c
  12. lib11.so: lib11.c $(LUA_DIR)/luaconf.h $(LUA_DIR)/lua.h
  13. $(CC) $(CFLAGS) -o lib11.so lib11.c
  14. lib2.so: lib2.c $(LUA_DIR)/luaconf.h $(LUA_DIR)/lua.h
  15. $(CC) $(CFLAGS) -o lib2.so lib2.c
  16. lib21.so: lib21.c $(LUA_DIR)/luaconf.h $(LUA_DIR)/lua.h
  17. $(CC) $(CFLAGS) -o lib21.so lib21.c
  18. lib2-v2.so: lib21.c $(LUA_DIR)/luaconf.h $(LUA_DIR)/lua.h
  19. $(CC) $(CFLAGS) -o lib2-v2.so lib22.c