summaryrefslogtreecommitdiff
path: root/Makefile.FreeBSD
blob: abd9a249220482b16eb01588a82bf64aa85183ee (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