Skip to content

Commit

Permalink
Add support of build rule for mingw env.
Browse files Browse the repository at this point in the history
  • Loading branch information
syoyo committed Apr 8, 2012
1 parent de234a4 commit 7fc3d95
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -3,6 +3,14 @@ CC = gcc
CFLAGS = -O3 -Wall
LDFLAGS =

# gcc only
CCMACHINE = $(shell $(CC) -dumpmachine)

# On windows + mingw, link winsock2 lib.
ifeq ($(findstring mingw32, $(CCMACHINE)), mingw32)
LDFLAGS += -lws2_32
endif

.PHONY: all
all: lfpsplitter

Expand Down

0 comments on commit 7fc3d95

Please sign in to comment.