summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: ef194c71a22de700fdcc72bab1652d49e055ff4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: all clean

LIBMAJOR = 1
LIBMINOR = 0

LIBNAME = libdnsldap.so.$(LIBMAJOR).$(LIBMINOR).0
LIBSONAME = libdnsldap.so.$(LIBMAJOR)
OBJS = ldap_driver.o semaphore.o log.o str.o

CFLAGS := -Wall -Wextra -pedantic -std=c99 -g -fPIC $(CFLAGS)


all: $(LIBNAME)

clean:
	rm -f $(LIBNAME) *.o

$(LIBNAME): $(OBJS)
	$(CC) -ldns -lldap -shared -Wl,-soname,$(LIBSONAME) $+ -o $@