mk: use SYSTYPE for Darwin and append to LIBS

This commit is contained in:
Lucas De Marchi 2016-07-06 11:10:59 -03:00
parent 98c97a689f
commit 1923d9029e
1 changed files with 3 additions and 4 deletions

View File

@ -57,17 +57,16 @@ CFLAGS += $(WARNFLAGS) $(DEPFLAGS) $(COPTS)
ASFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(DEPFLAGS)
ASFLAGS += $(ASOPTS)
LDFLAGS = -g $(CPUFLAGS) $(OPTFLAGS) $(WARNFLAGS)
UNAME_S := $(shell uname -s)
ifneq ($(SYSTYPE),Darwin)
LDFLAGS += -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP)
endif
LIBS ?= -lm -pthread
ifneq ($(UNAME_S),Darwin)
CXXFLAGS += -lrt
endif
ifneq ($(SYSTYPE),Darwin)
LIBS += -lrt
endif
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
LIBS += -lwinmm
endif