Skip to content

Building on Windows (none MSYS) #101

@m420p

Description

@m420p

The removal of the double "/" in #89 broke the build using make outside of MSYS2 terminal.

This works for me inside MSYS2 and in PS/CMD

CFLAGS += -Wall -Werror -fpic -std=gnu99

ifeq ($(OS),Windows_NT)
    CC = gcc
    TARGET := libfzf.dll
ifeq (,$(findstring MSYS,$(MSYSTEM)))
	# On Windows, but NOT msys
    MKD = cmd //C mkdir
    RM = cmd //C rmdir //Q //S
else
    MKD = mkdir -p
    RM = rm -rf
endif
else
    MKD = mkdir -p
    RM = rm -rf
    TARGET := libfzf.so
endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions