summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2008-12-10 21:25:39 +0100
committerMartin Nagy <mnagy@redhat.com>2008-12-10 21:25:39 +0100
commit84f3ee86191e15d70c7466cebe3d1fb34cf7e9d5 (patch)
tree1d6b9c7c65f0813dc90db59f56b57c1b79b2de79 /Makefile
downloadldap_driver-84f3ee86191e15d70c7466cebe3d1fb34cf7e9d5.tar.gz
ldap_driver-84f3ee86191e15d70c7466cebe3d1fb34cf7e9d5.tar.xz
ldap_driver-84f3ee86191e15d70c7466cebe3d1fb34cf7e9d5.zip
Initial import.
The driver for now only prints the argument list and then fails.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..22cea06
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+.PHONY: all clean
+
+LIBMAJOR = 1
+LIBMINOR = 0
+
+LIBNAME = libdnsldap.so.$(LIBMAJOR).$(LIBMINOR).0
+LIBSONAME = libdnsldap.so.$(LIBMAJOR)
+LIBSOURCES = ldap_driver.c semaphore.o log.o
+
+ALL_CFLAGS = -Wall -Wextra -pedantic -std=c99 -g -fPIC $(CFLAGS)
+
+
+all: $(LIBNAME) semaphore.o
+
+clean:
+ rm -f $(LIBNAME) *.o
+
+$(LIBNAME): $(LIBSOURCES)
+ $(CC) $(ALL_CFLAGS) -ldns -lldap -shared -Wl,-soname,$(LIBSONAME) $+ -o $@
+
+semaphore.o: semaphore.c
+ $(CC) $(ALL_CFLAGS) -c $+ -o $@
+
+log.o: log.c
+ $(CC) $(ALL_CFLAGS) -c $+ -o $@