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

Commit

Permalink
Use common.mak instead of local definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
schveiguy committed Sep 18, 2015
1 parent 00f8e41 commit 7ae347d
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions test/profile/Makefile
@@ -1,27 +1,12 @@
# set from top makefile
OS:=
MODEL:=
DMD:=
DRUNTIME:=
DRUNTIMESO:=
QUIET:=
LINKDL:=

SRC:=src
ROOT:=./obj/$(OS)/$(MODEL)/$(BUILD)
TESTS:=$(addprefix $(ROOT)/,$(addsuffix .done,profile profilegc both))
include ../common.mak

TESTS:=profile profilegc both

DIFF:=diff
GREP:=grep

ifneq (default,$(MODEL))
MODEL_FLAG:=-m$(MODEL)
endif
CFLAGS:=$(MODEL_FLAG) -Wall
DFLAGS:=$(MODEL_FLAG) -w -I../../src -I../../import -I$(SRC) -L$(DRUNTIME) -defaultlib= -debuglib=

.PHONY: all clean
all: $(TESTS)
all: $(addprefix $(ROOT)/,$(addsuffix .done,$(TESTS)))

$(ROOT)/profile.done: DFLAGS+=-profile
$(ROOT)/profile.done: $(ROOT)/%.done: $(ROOT)/%
Expand Down Expand Up @@ -56,4 +41,4 @@ $(ROOT)/%: $(SRC)/%.d
$(QUIET)$(DMD) $(DFLAGS) -of$(ROOT)/$* $<

clean:
rm -rf obj *.log *.def
rm -rf $(ROOT) *.log *.def

0 comments on commit 7ae347d

Please sign in to comment.