Browse Source

DEV: makefile support for windows based compilers

concepts
Christos Choutouridis 4 years ago
parent
commit
ef5eb2c891
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      test/Makefile

+ 6
- 1
test/Makefile View File

@@ -57,6 +57,8 @@


# ============== Project settings ==============
# Project's name
PROJECT := utl
# Excecutable's name
TARGET := utlTest
# Source directories list(space seperated).
@@ -98,7 +100,7 @@ MAP_FLAG := -Xlinker -Map=$(BUILD_DIR)/$(MAP_FILE)
# We double-$$ for double evaluating.
DOCKER_VOL_DIR := "$${PWD%/*}"
DOCKER_WRK_DIR := test
DOCKER_RUN := docker run --rm -v $(DOCKER_VOL_DIR):/usr/src/$(TARGET) -w /usr/src/$(TARGET)/$(DOCKER_WRK_DIR)
DOCKER_RUN := docker run --rm -v $(DOCKER_VOL_DIR):/usr/src/$(PROJECT) -w /usr/src/$(PROJECT)/$(DOCKER_WRK_DIR)

# ============== Default settings ==============
# compiler and compiler flags. By default docker is not used.
@@ -109,6 +111,9 @@ DOCKER :=
#
# =========== Main body and Patterns ===========
#
ifeq ($(OS), Windows_NT)
TARGET := $(TARGET).exe
endif
INC := $(foreach dir,$(INC_DIR_LIST),-I$(dir))
DEF := $(foreach def,$(PRE_DEFS),-D$(def))
EXC := $(foreach fil,$(EXC_FILE_LIST), \


Loading…
Cancel
Save