jw-pkg/make/proj.mk
Jan Lindemann 19e4095c94 proj.mk: Define MODDIR with ?=, to allow external jw-build
jw-build can handle its own builds and releases, but fixing that can
be nicer if the development and the test directory are seperate

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-01-08 11:12:32 +00:00

69 lines
1.3 KiB
Makefile

# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
PROJECT = jw-build
MODDIR ?= $(TOPDIR)
JANWARE_WIKI = priv
REQUIRED = inst/pre \
make \
doc \
debug misc slog platform \
devutil \
hash \
hexdump \
lbuffer \
debug \
cfgfile gtopts \
lock sigsync shmem \
usrv uclnt statecheck msgfmt \
YMisc YError \
YThread YMutex YEvent YCbContr contr/Y2WayMap \
YTimeB YStopWatch YStopWatchList YStopWatchQueue YStopWatchThreadList \
lib include bin \
inst/post
# rpmdist.mk variable overrides
FTP_SRC_GROUP = ytsrc
FTP_RUN_GROUP = ytrun
FTP_DEV_GROUP = ytdev
FTP_FILE_MODE = 644
FTP_DIR_MODE = 755
ifeq ($(DEVELOPMENT),true)
include $(TOPDIR)/make/cfg_dev.mk
else
include $(TOPDIR)/make/cfg_dist.mk
endif
PREREQ_BUILD += jw-build
USE_GLIB = true
CFLAGS += -D_USRDLL -DJW_BUILD_EXPORTS
CPPFLAGS += -D_USRDLL -DJW_BUILD_EXPORTS
#DEBUG_FORMAT_FLAG ?= -gstabs+
PROJECT_CFLAGS += $(DEBUG_FORMAT_FLAG)
PROJECT_CPPFLAGS += $(DEBUG_FORMAT_FLAG)
PROJECT_LDFLAGS += $(DEBUG_FORMAT_FLAG)
# need to do this before
include $(MODDIR)/make/platform.mk
ifeq ($(TARGET),mingw)
CONTRIB_DLL = \
iconv \
libglib-2.0-0 \
intl \
libgnurx-0
# msvcirt \
# msvcp71d \
# msvcp71 \
# msvcr71d \
# msvcr71
CONTRIB_LIBS += $(addsuffix .dll,$(CONTRIB_DLL))
PROJECT_LDFLAGS += -lgnurx
endif