-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
49 lines (31 loc) · 1.09 KB
/
Makefile.am
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
# $Id: Makefile.am 27271 2011-10-21 21:47:39Z jilles $
#
# okay so i've flattened out the build stuff here.
# this is really for the best since so many things depend
# on each other now..
AUTOMAKE_OPTIONS = foreign subdir-objects
ACLOCAL_AMFLAGS = -I m4
prefix = @prefix@
libcoredir = @libdir@
modulesdir = @moduledir@/autoload
coredir = @moduledir@
servicesdir = @moduledir@/autoload
AM_CFLAGS = $(WARNFLAGS)
ircd_SOURCES = main.c
bin_PROGRAMS = ircd
if MINGW
EXTRA_FLAGS = -no-undefined -Wl,--enable-runtime-pseudo-reloc -export-symbols-regex '*'
endif
if !STATIC_MODULES
SUBDIRS = libratbox libltdl src modules tools doc help bandb ssld resolver
ircd_LDADD = libratbox/src/libratbox.la src/libcore.la $(LIBLTDL)
ircd_LDFLAGS = $(EXTRA_FLAGS) -dlopen self
else
SUBDIRS = libratbox libltdl modules src tools doc help bandb ssld resolver
ircd_LDADD = libratbox/src/libratbox.la modules/libmodules.la src/libcore.la modules/static_modules.o $(LIBLTDL) $(DLOPEN)
endif
build_contrib:
cd contrib && $(MAKE)
install_contrib: build_contrib
cd contrib && $(MAKE) install
contrib: build_contrib