Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 7ae347d

Browse files
committed
Use common.mak instead of local definitions
1 parent 00f8e41 commit 7ae347d

1 file changed

Lines changed: 5 additions & 20 deletions

File tree

test/profile/Makefile

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
1-
# set from top makefile
2-
OS:=
3-
MODEL:=
4-
DMD:=
5-
DRUNTIME:=
6-
DRUNTIMESO:=
7-
QUIET:=
8-
LINKDL:=
9-
10-
SRC:=src
11-
ROOT:=./obj/$(OS)/$(MODEL)/$(BUILD)
12-
TESTS:=$(addprefix $(ROOT)/,$(addsuffix .done,profile profilegc both))
1+
include ../common.mak
2+
3+
TESTS:=profile profilegc both
134

145
DIFF:=diff
156
GREP:=grep
167

17-
ifneq (default,$(MODEL))
18-
MODEL_FLAG:=-m$(MODEL)
19-
endif
20-
CFLAGS:=$(MODEL_FLAG) -Wall
21-
DFLAGS:=$(MODEL_FLAG) -w -I../../src -I../../import -I$(SRC) -L$(DRUNTIME) -defaultlib= -debuglib=
22-
238
.PHONY: all clean
24-
all: $(TESTS)
9+
all: $(addprefix $(ROOT)/,$(addsuffix .done,$(TESTS)))
2510

2611
$(ROOT)/profile.done: DFLAGS+=-profile
2712
$(ROOT)/profile.done: $(ROOT)/%.done: $(ROOT)/%
@@ -56,4 +41,4 @@ $(ROOT)/%: $(SRC)/%.d
5641
$(QUIET)$(DMD) $(DFLAGS) -of$(ROOT)/$* $<
5742

5843
clean:
59-
rm -rf obj *.log *.def
44+
rm -rf $(ROOT) *.log *.def

0 commit comments

Comments
 (0)