added an import utility

This commit is contained in:
SJ
2011-12-30 15:52:59 +01:00
parent 89a83df4fb
commit 1b57459f89
11 changed files with 216 additions and 13 deletions

View File

@@ -33,7 +33,7 @@ MAKE = `which make`
INSTALL = @INSTALL@
all: libpiler.a piler pilerconf pilerget test
all: libpiler.a piler pilerconf pilerget pilerimport test
install: install-piler
@@ -51,6 +51,9 @@ libpiler.a: $(OBJS) $(MYSQL_OBJS)
pilerget: pilerget.c cfg.o misc.o tai.o store.o attachment.o digest.o
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ $(LIBS) $(LIBDIR)
pilerimport: pilerimport.c libpiler.a
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ -lpiler $(LIBS) $(LIBDIR)
pilerconf: pilerconf.c cfg.o misc.o tai.o
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ $(LIBDIR)
@@ -79,7 +82,7 @@ install-piler:
$(INSTALL) -m 0755 pilerget $(DESTDIR)$(bindir)
clean:
rm -f *.o *.a libpiler.so* piler pilerconf pilerget pilertest
rm -f *.o *.a libpiler.so* piler pilerconf pilerget pilerimport pilertest
distclean: clean
rm -f Makefile