summaryrefslogtreecommitdiff
path: root/Makefile.FreeBSD
blob: 51c6f3f3ebe330d55b3522ef65f4fc4218e11414 (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
# Insp Main Makefile
#
#
#
#

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