| 1 | # Location of Lua header files |
| 2 | LUA_DIR = /usr/local/include/ |
| 3 | |
| 4 | # Compilation parameters |
| 5 | CC = gcc |
| 6 | CWARNS = -Wall -Wmissing-prototypes -Wshadow -pedantic -Wpointer-arith -Wcast-align -Waggregate-return |
| 7 | CFLAGS = $(CONFIG) $(CWARNS) -ansi -O2 -I$(LUA_DIR) |
| 8 | |
| 9 | |
| 10 | # Files in this distribution |
| 11 | FILES = makefile \ |
| 12 | md5.c \ |
| 13 | md5lib.c \ |
| 14 | md5.h \ |
| 15 | md5.lua \ |
| 16 | md5.html \ |
| 17 | md5tests.lua |
| 18 | |
| 19 | # Rule to create shared library, to be used with `loadlib' (see also |
| 20 | # file `md5.lua') |
| 21 | md5 : md5.o md5lib.o |
| 22 | ld -o libmd5.so -shared md5.o md5lib.o |
| 23 |