From 70c78281e3957bdbaa1204e40f2419a4a1918eb7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 May 2008 19:05:30 +0400 Subject: * Add skeleton --- Makefile.in | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile.in (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 000000000..5685d6c32 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,30 @@ + +all: $(TARGETS) + +memctest: upstream.c memcached.c memcached-test.c + $(CC) $(OPT_FLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) -c upstream.c + $(CC) $(OPT_FLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) -c memcached.c + $(CC) $(OPT_FLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) -c memcached-test.c + $(CC) $(OPT_FLAGS) $(PTHREAD_LDFLAGS) $(LD_PATH) upstream.o memcached.o memcached-test.o $(LIBS) -o memcached-test + +install: $(EXEC) rmilter.8 rmilter.conf.sample + $(INSTALL) -b $(EXEC) $(PREFIX)/sbin/$(EXEC) + $(INSTALL) -v $(EXEC).sh $(PREFIX)/etc/rc.d + #$(INSTALL) -m0644 rspamd.8 $(MANPATH)/man8 + #$(INSTALL) -m0644 rspamd.conf.sample $(PREFIX)/etc + $(MKDIR) -o $(RSPAMD_USER) -g $(RSPAMD_GROUP) /var/run/rspamd + +clean: + rm -f *.o $(EXEC) *.core + rm -f cfg_lex.c cfg_yacc.c cfg_yacc.h + +dist-clean: clean + rm -f Makefile + rm -f config.log + rm -f md5.h md5.c strlcpy.h strlcpy.c queue.h + +creategroup: + @echo "Create group $(RSPAMD_GROUP) before installing!" + +createuser: + @echo "Create user $(RSPAMD_USER) before installing!" -- cgit v1.2.3