srcdir=@srcdir@
VPATH=@srcdir@
SRCTOP=@top_srcdir@
+top_builddir=@top_builddir@
BUILDTOP=../..
CC=@CC@
CFLAGS=@CFLAGS@
DEFS=@DEFS@
ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS)
+LIBTOOL=@LIBTOOL@
-.c.o:
- $(CC) -c $(ALL_CFLAGS) $<
+.SUFFIXES: .lo
-all: moira_schema.h moira_schema.c moira_schema.o
+.c.lo:
+ $(LIBTOOL) --mode=compile $(CC) -c $(ALL_CFLAGS) $<
+
+all: moira_schema.h moira_schema.c moira_schema.lo
clean:
- rm -f moira_schema.h moira_schema.c moira_schema.o
+ $(LIBTOOL) --mode=clean rm -f moira_schema.h moira_schema.c moira_schema.lo
+
+cleandir distclean: clean
+ rm -f Makefile
depend: moira_schema.c moira_schema.h