aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
blob: 65cd1a405ed1b641ec4d491acb4cc8db0944c033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
all: perl $(TARGETS)

perl:
	cd perl && make && cd ..

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)
	$(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
	cd perl && make clean && cd ..

dist-clean: clean
	rm -f Makefile
	rm -f config.log
	rm -f md5.h md5.c strlcpy.h strlcpy.c queue.h config.h modules.c
	cd perl && rm -f Makefile.old && rm -f Makefile.PL && cd ..

creategroup:
	@echo "Create group $(RSPAMD_GROUP) before installing!" 

createuser:
	@echo "Create user $(RSPAMD_USER) before installing!"