]> andersk Git - moira.git/blobdiff - dbck/Makefile.in
Build shared libmoira via libtool.
[moira.git] / dbck / Makefile.in
index 4509ca8f6a92b7f651725cd01c55070c64c225a7..009ec633c3606323f419c0cdfa158434fb3ab2f7 100644 (file)
@@ -8,6 +8,7 @@ CPPFLAGS=@CPPFLAGS@
 CFLAGS=@CFLAGS@
 DEFS=@DEFS@
 ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS)
+LIBTOOL=@LIBTOOL@
 PRO_C=@PRO_C@
 PRO_C_DEFS=@PRO_C_DEFS@
 PRO_C_INCLUDES=@PRO_C_INCLUDES@
@@ -22,35 +23,47 @@ INSTALL_PROGRAM=@INSTALL_PROGRAM@
 srcdir=@srcdir@
 VPATH=@srcdir@
 SRCTOP=@top_srcdir@
+top_builddir=@top_builddir@
 BUILDTOP=..
 mrbindir=@mrbindir@
 
-OBJS=dbck.o fix.o phase1.o phase2.o phase3.o phase4.o
+DBCK_OBJS=dbck.lo fix.lo phase1.lo phase2.lo phase3.lo phase4.lo
+MEMBERS_OBJS=members.lo
+OBJS= $(DBCK_OBJS) $(MEMBERS_OBJS)
 
-CFILES=dbck.c fix.c phase1.c phase2.c phase3.c phase4.c
+CFILES=dbck.c fix.c phase1.c phase2.c phase3.c phase4.c members.c
 
-TARGET=dbck
+TARGET=dbck members
 
-.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 $(OBJS) $(CFILES) $(TARGET)
+       $(LIBTOOL) --mode=clean rm -f $(OBJS) $(CFILES) $(TARGET)
 
 cleandir distclean: clean
        rm -f Makefile
 
 depend: $(CFILES)
 
-install: all
-       $(INSTALL_PROGRAM) dbck $(mrbindir)
+install:
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) dbck $(DESTDIR)$(mrbindir)
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) members $(DESTDIR)$(mrbindir)
+
+dbck: $(DBCK_OBJS) $(MR_LIBDEP)
+       $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(DBCK_OBJS) $(LIBS)
+
+members: $(MEMBERS_OBJS) $(MR_LIBDEP)
+       $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(MEMBERS_OBJS) $(LIBS)
+
+
+
+
 
-$(TARGET): $(OBJS) $(MR_LIBDEP)
-       $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
This page took 0.04356 seconds and 4 git commands to generate.