keep bug fixing in Makefiles and remove parallism in Make

This commit is contained in:
tangxifan 2019-04-10 16:10:19 +08:00
parent 7c42119481
commit e2e4a9287d
2 changed files with 14 additions and 4 deletions

View File

@ -7,10 +7,10 @@ $SPACER
start_section "OpenFPGA.build" "${GREEN}Building..${NC}"
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
make -j1
make
else
# For linux, we enable full package compilation
make -j8
make
fi
end_section "OpenFPGA.build"

View File

@ -43,8 +43,18 @@ CFLAGS += -MD -MP
CXXFLAGS += $(CFLAGS)
#LIBS := -ldl -rdynamic -ltermcap
#LIBS := -ldl -rdynamic
LIBS := -ldl
# Depend on Operating Systems, we use different libs in linking
UNAME := $(shell uname)
# determine build env
ifeq ($(UNAME), Darwin)
MAC_OS = true
LIBS := -ldl
else
MAC_OS = false
LIBS := -ldl -rdynamic
endif
SRC :=
GARBAGE := core core.* *.stackdump ./tags $(PROG)