Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ clean:
$(RM) tags

test:
echo $(MODEL)
$(QUIET)$(MAKE) -C test -f Makefile

html:
Expand Down
10 changes: 7 additions & 3 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ include ../src/osmodel.mak

export OS

GENERATED=../generated
BUILD=release
G=$(GENERATED)/$(OS)/$(BUILD)/$(MODEL)

ifeq (freebsd,$(OS))
SHELL=/usr/local/bin/bash
else ifeq (netbsd,$(OS))
Expand All @@ -112,7 +116,7 @@ export DFLAGS=-I$(DRUNTIME_PATH)\import -I$(PHOBOS_PATH)
export LIB=$(PHOBOS_PATH)
else
export ARGS=-inline -release -g -O -fPIC
export DMD=../src/dmd
export DMD=$G/dmd
export EXE=
export OBJ=.o
export DSEP=/
Expand All @@ -122,9 +126,9 @@ DRUNTIME_PATH=../../druntime
PHOBOS_PATH=../../phobos
# link against shared libraries (defaults to true on supported platforms, can be overridden w/ make SHARED=0)
SHARED=$(if $(findstring $(OS),linux freebsd),1,)
DFLAGS=-I$(DRUNTIME_PATH)/import -I$(PHOBOS_PATH) -L-L$(PHOBOS_PATH)/generated/$(OS)/release/$(MODEL)
DFLAGS=-I$(DRUNTIME_PATH)/import -I$(PHOBOS_PATH) -L-L$(PHOBOS_PATH)/generated/$(OS)/$(BUILD)/$(MODEL)
ifeq (1,$(SHARED))
DFLAGS+=-defaultlib=libphobos2.so -L-rpath=$(PHOBOS_PATH)/generated/$(OS)/release/$(MODEL)
DFLAGS+=-defaultlib=libphobos2.so -L-rpath=$(PHOBOS_PATH)/generated/$(OS)/$(BUILD)/$(MODEL)
endif
export DFLAGS
endif
Expand Down