mirror of
https://github.com/makarcz/vm6502.git
synced 2024-09-27 12:58:15 +00:00
Update makefile
Bug fixes.
This commit is contained in:
parent
37fa527d75
commit
6e6c535519
9
makefile
9
makefile
@ -13,7 +13,12 @@ CXXINCS =
|
|||||||
ifeq ($(SDLBASE),)
|
ifeq ($(SDLBASE),)
|
||||||
$(error ***** SDLDIR not set)
|
$(error ***** SDLDIR not set)
|
||||||
endif
|
endif
|
||||||
$(eval $(export HOSTTYPE = $(arch)))
|
ifneq "$(HOSTTYPE)" ""
|
||||||
|
$(info ***** HOSTTYPE already set)
|
||||||
|
else
|
||||||
|
$(info ***** HOSTTYPE not set. Setting...)
|
||||||
|
HOSTTYPE = $(shell arch)
|
||||||
|
endif
|
||||||
$(info ***** SDLDIR = $(SDLDIR))
|
$(info ***** SDLDIR = $(SDLDIR))
|
||||||
$(info ***** HOSTTYPE = $(HOSTTYPE))
|
$(info ***** HOSTTYPE = $(HOSTTYPE))
|
||||||
ifeq ($(HOSTTYPE),x86_64)
|
ifeq ($(HOSTTYPE),x86_64)
|
||||||
@ -23,7 +28,7 @@ ifeq ($(HOSTTYPE),x86_64)
|
|||||||
CXXFLAGS = $(CXXINCS) -std=c++11 -pthread -Wall -pedantic -g3 -fpermissive
|
CXXFLAGS = $(CXXINCS) -std=c++11 -pthread -Wall -pedantic -g3 -fpermissive
|
||||||
else
|
else
|
||||||
$(info ***** 32-bit)
|
$(info ***** 32-bit)
|
||||||
LIBS = -static-libgcc -m32 -g3 -ltermcap -lncurses
|
LIBS = -static-libgcc -m32 -g3 -ltermcap -lncurses -lpthread
|
||||||
CLIBS = -static-libgcc -m32 -g3
|
CLIBS = -static-libgcc -m32 -g3
|
||||||
CXXFLAGS = $(CXXINCS) -m32 -std=c++11 -pthread -Wall -pedantic -g3 -fpermissive
|
CXXFLAGS = $(CXXINCS) -m32 -std=c++11 -pthread -Wall -pedantic -g3 -fpermissive
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user