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