parent
e688dd10d1
commit
56bb2e2c70
|
@ -11,6 +11,14 @@ endif
|
||||||
BINARY_OUTPUT = $(BUILDDIR)/$(PROJECT)
|
BINARY_OUTPUT = $(BUILDDIR)/$(PROJECT)
|
||||||
SHARED_OUTPUT = $(BUILDDIR)/lib_$(PROJECT)
|
SHARED_OUTPUT = $(BUILDDIR)/lib_$(PROJECT)
|
||||||
|
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
# todo: something is not right here how can we avoid explicit suffix?
|
||||||
|
# should not gcc figure it out based on 'shared' option?
|
||||||
|
SHARED_OUTPUT_OPT = $(SHARED_OUTPUT).dll
|
||||||
|
else
|
||||||
|
SHARED_OUTPUT_OPT = $(SHARED_OUTPUT).so
|
||||||
|
endif
|
||||||
|
|
||||||
# Automatic compiler options
|
# Automatic compiler options
|
||||||
OPT = $(USE_OPT)
|
OPT = $(USE_OPT)
|
||||||
COPT = $(USE_COPT)
|
COPT = $(USE_COPT)
|
||||||
|
@ -131,14 +139,6 @@ else
|
||||||
@$(CC) -c $(ASXFLAGS) $(TOPT) -I. $(IINCDIR) $< -o $@
|
@$(CC) -c $(ASXFLAGS) $(TOPT) -I. $(IINCDIR) $< -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(OS),Windows_NT)
|
|
||||||
# todo: something is not right here how can we avoid explicit suffix?
|
|
||||||
# should not gcc figure it out based on 'shared' option?
|
|
||||||
SHARED_OUTPUT_OPT = $(SHARED_OUTPUT).dll
|
|
||||||
else
|
|
||||||
SHARED_OUTPUT_OPT = $(SHARED_OUTPUT).so
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(BINARY_OUTPUT): $(OBJS)
|
$(BINARY_OUTPUT): $(OBJS)
|
||||||
rm -rf $(BUILDDIR)/obj/*gcda
|
rm -rf $(BUILDDIR)/obj/*gcda
|
||||||
ifeq ($(USE_VERBOSE_COMPILE),yes)
|
ifeq ($(USE_VERBOSE_COMPILE),yes)
|
||||||
|
|
Loading…
Reference in New Issue