From 48dd41026a9a2f1bc5cfb7b141e8c332cd81714f Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Tue, 27 Oct 2015 00:10:02 +0100 Subject: [PATCH] Fix Makefile for Linux --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 37aee2b..573b8f1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,13 @@ +ifneq (,$(findstring MINGW,$(shell uname -s))) + RES_APP = filesync.exe + BUILDDIR = build-mingw +else + RES_APP = filesync + BUILDDIR = build-linux +endif + + CC = gcc RM = rm -f ECHO = echo @@ -21,11 +30,8 @@ OBJS_APP = \ $(OBJS_BASE) \ $(BUILDDIR)/main.o -RES_APP = filesync.exe - CFLAGS = -g LIBS = -lm -BUILDDIR = build DO_CC=@$(ECHO) "CC: $@" ;\