summaryrefslogtreecommitdiff
path: root/.Makefile.inc
blob: d4f8d4745fb943bc4a3261446cabbdf5115824cb (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Inspircd Main Makefile
#
# (C) ChatSpike development team
# DO NOT MODIFY UNLESS YOU KNOW WHAT YOU ARE DOING!
#####
# Original Makefile & ./configure by <Craig@ChatSpike.net>
# Small modifications by <brain@ChatSpike.net>
#

CC = @CC@
MAKE = @MAKEPROG@
PROGS = inspircd
FLAGS = @FLAGS@
LDLIBS = @LDLIBS@
CONPATH = @CONFIG_DIR@
MODPATH = @MODULE_DIR@
BINPATH = @BINARY_DIR@
LIBPATH = @LIBRARY_DIR@
MODULES = @MODULES@
STATICLIBS = @STATICLIBS@
MAKEARGS = 'PROGS=${PROGS}' 'FLAGS=${FLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'STATICLIBS=${STATICLIBS}'

all : @MAKEORDER@

mods:
	${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS)

ircd:
	${MAKE} -C src DIRNAME="src" $(MAKEARGS)

bininst:
	@-rm -f $(BINPATH)/*.so
	@-rm -f $(BINPATH)/inspircd
	@-cp src/*.so $(LIBPATH)
	@-cp src/inspircd $(BINPATH)
	@-chmod 0700 $(BINPATH)/inspircd
	@-chmod 0700 $(LIBPATH)/*.so

config:
	@cp conf/inspire.motd $(CONPATH)/inspire.motd.example
	@cp conf/inspire.quotes $(CONPATH)/inspire.quotes.example
	@cp conf/inspire.rules $(CONPATH)/inspire.rules.example
	@cp docs/*.example $(CONPATH)
clean:
	rm -rf src/*.so
	rm -rf src/*.o
	rm -rf src/inspircd
	rm -rf src/modules/*.so
	rm -rf src/modules/*.o

modclean:
	rm -rf modules/*.so
	rm -rf src/modules/*.so
	rm -rf src/modules/*.o

squeakyclean: modclean clean