52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
|
# $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
|
||
|
|
||
|
|