jw-pkg/make/proj.mk
Jan Lindemann f9d398d219 make: Fix MinGW build machinery machinery
This commit makes it possible to successfully run "make all" against ytools'
again, with TARGET_TUPLE set to i686-ms-w64-mingw. Lots of minor and major
tweaks here and there.

The biggest diff is a move of the architecture-related definitions into
platform.mk. The are needed pretty early on, so that seems reasonable.

Making this work again is part of the larger effort to support cross
buildchains in a more concise way, i.e. without so many if ($(TARGET),mingw))
all over the place. TARGET's relevance should dwindle, until it's finally taken
over by the TARGET_XXX variables extracted from TARGET_TUPLE or TARGET_TRIPLET.

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-02 17:21:48 +00:00

50 lines
1.1 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)