Fix Makefile for Linux
This commit is contained in:
12
Makefile
12
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
|
CC = gcc
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
ECHO = echo
|
ECHO = echo
|
||||||
@@ -21,11 +30,8 @@ OBJS_APP = \
|
|||||||
$(OBJS_BASE) \
|
$(OBJS_BASE) \
|
||||||
$(BUILDDIR)/main.o
|
$(BUILDDIR)/main.o
|
||||||
|
|
||||||
RES_APP = filesync.exe
|
|
||||||
|
|
||||||
CFLAGS = -g
|
CFLAGS = -g
|
||||||
LIBS = -lm
|
LIBS = -lm
|
||||||
BUILDDIR = build
|
|
||||||
|
|
||||||
|
|
||||||
DO_CC=@$(ECHO) "CC: $@" ;\
|
DO_CC=@$(ECHO) "CC: $@" ;\
|
||||||
|
|||||||
Reference in New Issue
Block a user