summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/examples/Makefile.in
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-12-21 16:02:35 +0100
committerGünther Deschner <gd@samba.org>2007-12-21 16:02:35 +0100
commit27a58bd50cfd749cdcfa90fe7abeaf15dc09bbf3 (patch)
tree755455d02d584e6c3c10e6c3ae25586115841447 /source3/lib/netapi/examples/Makefile.in
parenteddd190921f2b322a227044a5c8067397f80c0f5 (diff)
downloadsamba-27a58bd50cfd749cdcfa90fe7abeaf15dc09bbf3.tar.gz
samba-27a58bd50cfd749cdcfa90fe7abeaf15dc09bbf3.tar.bz2
samba-27a58bd50cfd749cdcfa90fe7abeaf15dc09bbf3.zip
Add getdc.c, a libnetapi example (incl. Makefile).
Guenther (This used to be commit faedc78fc78527ee3bf05e1177ea43653aea67b2)
Diffstat (limited to 'source3/lib/netapi/examples/Makefile.in')
-rw-r--r--source3/lib/netapi/examples/Makefile.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/source3/lib/netapi/examples/Makefile.in b/source3/lib/netapi/examples/Makefile.in
new file mode 100644
index 0000000000..79f9187d84
--- /dev/null
+++ b/source3/lib/netapi/examples/Makefile.in
@@ -0,0 +1,34 @@
+KRB5LIBS=@KRB5_LIBS@
+LDAP_LIBS=@LDAP_LIBS@
+LIBS=@LIBS@ -lnetapi
+DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
+FLAGS=@CFLAGS@
+CC=@CC@
+LDFLAGS=@PIE_LDFLAGS@ @LDFLAGS@
+DYNEXP=@DYNEXP@
+
+# Compile a source file.
+COMPILE_CC = $(CC) -I. $(FLAGS) $(PICFLAG) -c $< -o $@
+COMPILE = $(COMPILE_CC)
+
+.c.o:
+ @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
+ dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
+ @echo Compiling $*.c
+ @$(COMPILE) && exit 0;\
+ echo "The following command failed:" 1>&2;\
+ echo "$(COMPILE_CC)" 1>&2;\
+ $(COMPILE_CC) >/dev/null 2>&1
+
+GETDC_OBJ = getdc.o
+
+PROGS = getdc
+
+all: $(PROGS)
+
+getdc: $(GETDC_OBJ)
+ @echo Linking $@
+ @$(CC) $(FLAGS) -o $@ $(GETDC_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
+
+clean:
+ @rm -f $(PROGS)