-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
51 lines (32 loc) · 1.15 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
48
49
# $Id: Makefile.am 28673 2015-09-29 17:06:09Z androsyn $
#
# 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
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 = @LTDL_SUBDIR@ libratbox 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 = @LTDL_SUBDIR@ libratbox 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
install_data-local:
-@if test ! -d @logdir@; then mkdir @logdir@;fi
contrib: build_contrib