summaryrefslogtreecommitdiff
path: root/Makefile.Linux
blob: df6d2008e49d5429dc4c0d583fda98063cb035b0 (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
# Insp Main Makefile
#
# (C) ChatSpike development team
# Makefile by <Craig@ChatSpike.net>
# Small modifications by <brain@ChatSpike.net>
#

CC = g++
PROGS = inspircd
FLAGS = -fPIC -frtti -O3
LDLIBS = -ldl
MODPATH = modules/
MODULES = m_cloaking.so m_foobar.so m_randquote.so
MAKEARGS = 'PROGS=${PROGS}' 'FLAGS=${FLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}'

all : ircd mods

mods:
	make -C src/modules DIRNAME="src/modules" $(MAKEARGS)
	mv src/modules/*.so $(MODPATH)

ircd:
	make -C src DIRNAME="src" $(MAKEARGS)
	cp src/inspircd bin/inspircd

clean:
	rm -rf src/*.o
	rm -rf src/modules/*.o

modclean:
	rm -rf modules/*.so

squeakyclean: modclean clean