]> andersk Git - moira.git/blobdiff - reg_svr/Makefile.in
Build shared libmoira via libtool.
[moira.git] / reg_svr / Makefile.in
index be17e8586de051e6cada302a5f09f99e6521a9cd..58469bd1cc734033d26f5c56cee33e3733fb0301 100644 (file)
@@ -8,6 +8,7 @@ CPPFLAGS=@CPPFLAGS@ @RSAREF_CPPFLAGS@ @REG_SVR_INCLUDES@
 CFLAGS=@CFLAGS@
 DEFS=@DEFS@ @REG_SVR_DEFS@
 ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS)
+LIBTOOL=@LIBTOOL@
 PRO_C=@PRO_C@
 PRO_C_DEFS=@PRO_C_DEFS@
 PRO_C_INCLUDES=@PRO_C_INCLUDES@
@@ -24,30 +25,31 @@ INSTALL_PROGRAM=@INSTALL_PROGRAM@
 srcdir=@srcdir@
 VPATH=@srcdir@
 SRCTOP=@top_srcdir@
+top_builddir=@top_builddir@
 BUILDTOP=..
 mrbindir=@mrbindir@
 
-REG_OBJS=      kerberos.o protocol.o reg_svr.o words.o
-START_OBJS=    startreg.o
-GENKEY_OBJS=   genkey.o
-GENWORDS_OBJS= genwords.o words.o
+REG_OBJS=      kerberos.lo protocol.lo reg_svr.lo words.lo
+START_OBJS=    startreg.lo
+GENKEY_OBJS=   genkey.lo
+GENWORDS_OBJS= genwords.lo words.lo
 
 CFILES=                reg_svr.c genwords.c
 
 TARGET=                reg_svr startreg genkey genwords
 
-.SUFFIXES: .pc
+.SUFFIXES: .pc .lo
 
 .pc.c:
        $(PRO_C) $(PRO_C_FLAGS) INAME=$< ONAME=$@
 
-.c.o:
-       $(CC) -c $(ALL_CFLAGS) $<
+.c.lo:
+       $(LIBTOOL) --mode=compile $(CC) -c $(ALL_CFLAGS) $<
 
 all: $(TARGET)
 
 clean:
-       rm -f $(REG_OBJS) $(START_OBJS) $(GENKEY_OBJS) $(GENWORDS_OBJS) \
+       $(LIBTOOL) --mode=clean rm -f $(REG_OBJS) $(START_OBJS) $(GENKEY_OBJS) $(GENWORDS_OBJS) \
                $(CFILES) $(TARGET)
 
 cleandir distclean: clean
@@ -56,19 +58,19 @@ cleandir distclean: clean
 depend: $(CFILES)
 
 install:
-       $(INSTALL_PROGRAM) reg_svr $(mrbindir)
-       $(INSTALL_PROGRAM) startreg $(mrbindir)
-       $(INSTALL_PROGRAM) genkey $(mrbindir)
-       $(INSTALL_PROGRAM) genwords $(mrbindir)
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) reg_svr $(DESTDIR)$(mrbindir)
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) startreg $(DESTDIR)$(mrbindir)
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) genkey $(DESTDIR)$(mrbindir)
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) genwords $(DESTDIR)$(mrbindir)
 
 reg_svr: $(REG_OBJS) $(MR_LIBDEP) $(RSAREF_LIBDEP)
-       $(CC) -o $@ $(LDFLAGS) $(REG_OBJS) $(LIBS) $(SQL_LIBS)
+       $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(REG_OBJS) $(LIBS) $(SQL_LIBS)
 
 startreg: $(START_OBJS)
-       $(CC) -o $@ $(LDFLAGS) $(START_OBJS) $(LIBS)
+       $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(START_OBJS) $(LIBS)
 
 genkey: $(GENKEY_OBJS)
-       $(CC) -o $@ $(LDFLAGS) $(GENKEY_OBJS) $(LIBS)
+       $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(GENKEY_OBJS) $(LIBS)
 
 genwords: $(GENWORDS_OBJS)
-       $(CC) -o $@ $(LDFLAGS) $(GENWORDS_OBJS) $(LIBS) $(SQL_LIBS)
+       $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(GENWORDS_OBJS) $(LIBS) $(SQL_LIBS)
This page took 0.036675 seconds and 4 git commands to generate.