]> andersk Git - moira.git/blobdiff - dcm/Makefile.in
Command line printer manipulation client, and build goo.
[moira.git] / dcm / Makefile.in
index 2d631b9e98d73a5086153ee83f1f40237625099e..6ffdbf0480715124744c0b8cad8e5698e60262c3 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@
@@ -16,45 +17,50 @@ PRO_C_FLAGS=$(PRO_C_OPTS) $(PRO_C_DEFS) $(PRO_C_INCLUDES)
 LDFLAGS=@LDFLAGS@
 SQL_LIBS=@SQL_LIBS@
 LIBS=@LIBS@
+MR_LIBDEP=@MR_LIBDEP@
 INSTALL=@INSTALL@
-INSTALL_PROGRAM=$(INSTALL_PROGRAM)
+INSTALL_PROGRAM=@INSTALL_PROGRAM@
 
 srcdir=@srcdir@
 VPATH=@srcdir@
 SRCTOP=@top_srcdir@
+top_builddir=@top_builddir@
 BUILDTOP=..
 mrbindir=@mrbindir@
 
-DCM_OBJS=dcm.o
-UPDATE_OBJS=../update/checksum.o ../update/client.o ../update/send_file.o \
-       ../update/ticket.o ../update/sendrecv.o
-START_OBJS=startdcm.o
+DCM_OBJS=dcm.lo
+UPDATE_OBJS=../update/checksum.lo ../update/client.lo ../update/send_file.lo \
+       ../update/ticket.lo ../update/sendrecv.lo
+START_OBJS=startdcm.lo
 
 CFILES=dcm.c
 
 TARGET=dcm startdcm
 
-.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 $(DCM_OBJS) $(START_OBJS) $(CFILES) $(TARGET)
+       $(LIBTOOL) --mode=clean rm -f $(DCM_OBJS) $(START_OBJS) $(CFILES) $(TARGET)
+
+cleandir distclean: clean
+       rm -f Makefile
 
 depend: $(CFILES)
 
-install: all
-       $(INSTALL_PROGRAM) dcm $(mrbindir)
-       $(INSTALL_PROGRAM) startdcm $(mrbindir)
+install:
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) dcm $(DESTDIR)$(mrbindir)
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) startdcm $(DESTDIR)$(mrbindir)
 
-dcm: $(DCM_OBJS)
-       $(CC) -o $@ $(LDFLAGS) $(DCM_OBJS) $(UPDATE_OBJS) $(SQL_LIBS) $(LIBS)
+dcm: $(DCM_OBJS) $(UPDATE_OBJS) $(MR_LIBDEP)
+       $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(DCM_OBJS) $(UPDATE_OBJS) $(SQL_LIBS) $(LIBS)
 
 startdcm: $(START_OBJS)
-       $(CC) -o $@ $(LDFLAGS) $(START_OBJS) $(LIBS)
+       $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(START_OBJS) $(LIBS)
This page took 0.034763 seconds and 4 git commands to generate.