aboutsummaryrefslogtreecommitdiffstats
path: root/lualdap/Makefile
blob: 2dcc5ae989e5ff2e208e6bbac6331bcc671e2a29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: Makefile,v 1.21 2005-06-05 00:38:22 tomas Exp $

T= lualdap
V= 1.0

include ./config

AR= ar rcu
RANLIB= ranlib

OBJS= src/lualdap.o $(COMPAT_DIR)/compat-5.1.o
LIB= src/lib$T-$V.a


dynamic: src/$(LIBNAME)
src/$(LIBNAME): $(OBJS)
	$(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS)

lib: $(LIB)
 $(LIB): $(OBJS)
	$(AR) $@ $(OBJS)
	$(RANLIB) $@

$(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
	$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c

install: dynamic src/$(LIBNAME)
	mkdir -p $(LUA_LIBDIR)
	cp src/$(LIBNAME) $(LUA_LIBDIR)
	ln -f -s $(LUA_LIBDIR)/$(LIBNAME) $(LUA_LIBDIR)/$T.so

clean:
	rm -f $(OBJS) $(LIB) src/$(LIBNAME)