2015-11-27 12:17:19 +01:00
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
includedir = @includedir@
|
|
|
|
libdir = @libdir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
mandir = @mandir@
|
|
|
|
datarootdir = @datarootdir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@ @CPPFLAGS@
|
|
|
|
DEFS = @defs@
|
|
|
|
INCDIR = -I. -I.. -I../.. -I../../src -I../src @INCDIR@ @sql_includes@
|
|
|
|
LIBDIR = -L. @LIBDIR@ @LDFLAGS@ -L../src
|
|
|
|
LIBS = @LIBS@ @sql_libs@
|
2018-11-03 15:48:37 +01:00
|
|
|
OBJS = common.o
|
2015-11-27 12:17:19 +01:00
|
|
|
RUNNING_USER = @RUNNING_USER@
|
|
|
|
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
2018-11-03 15:48:37 +01:00
|
|
|
all: $(OBJS) check_parser_utils check_rules check_digest check_mydomains check_parser check_decoder check_hash check_misc check_attachments smtp
|
2015-11-27 12:17:19 +01:00
|
|
|
|
|
|
|
check_parser_utils: check_parser_utils.c ../src/libpiler.a
|
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
|
2015-12-19 20:31:37 +01:00
|
|
|
check_rules: check_rules.c ../src/libpiler.a
|
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
|
2015-12-20 21:45:16 +01:00
|
|
|
check_digest: check_digest.c ../src/libpiler.a
|
2018-11-03 15:48:37 +01:00
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< $(OBJS) -lpiler $(LIBS) $(LIBDIR)
|
2015-12-20 21:45:16 +01:00
|
|
|
|
2015-12-21 12:53:14 +01:00
|
|
|
check_mydomains: check_mydomains.c ../src/libpiler.a
|
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
|
2015-12-22 15:21:24 +01:00
|
|
|
check_parser: check_parser.c ../src/libpiler.a
|
2018-11-03 15:48:37 +01:00
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< $(OBJS) -lpiler $(LIBS) $(LIBDIR)
|
2015-12-22 15:21:24 +01:00
|
|
|
|
2018-01-11 10:20:02 +01:00
|
|
|
check_decoder: check_decoder.c ../src/libpiler.a
|
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
|
|
|
|
check_hash: check_hash.c ../src/libpiler.a
|
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
|
|
|
|
check_misc: check_misc.c ../src/libpiler.a
|
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
|
2018-02-04 10:58:35 +01:00
|
|
|
check_attachments: check_attachments.c ../src/libpiler.a
|
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
|
2015-12-02 21:49:51 +01:00
|
|
|
smtp: smtp.c ../src/libpiler.a
|
|
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
|
2018-11-03 15:48:37 +01:00
|
|
|
%.o: $(srcdir)/%.c
|
|
|
|
$(CC) $(CFLAGS) -fPIC $(INCDIR) $(DEFS) -c $< -o $@
|
|
|
|
|
2015-12-09 21:19:14 +01:00
|
|
|
install:
|
|
|
|
@echo
|
|
|
|
|
2015-11-27 12:17:19 +01:00
|
|
|
clean:
|
2018-11-03 15:48:37 +01:00
|
|
|
rm -f check_parser_utils check_rules check_digest check_mydomains check_parser check_decoder check_hash check_misc check_attachments smtp *.o
|
2015-11-27 12:17:19 +01:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|