Previously Sortix would initialize SSE unconditionally as part of the boot process. Since earlier i686 CPUs like Pentium 2 did not include SSE, Sortix would not run on them. With this SSE is only enabled for CPUs that include it, which should theoretically allow Sortix to boot on all i686 CPUs. Additionally, this removes -msse -msse2 compiler flags from trianglix/Makefile.
29 lines
533 B
Makefile
29 lines
533 B
Makefile
SOFTWARE_MEANT_FOR_SORTIX=1
|
|
include ../build-aux/platform.mak
|
|
include ../build-aux/compiler.mak
|
|
include ../build-aux/version.mak
|
|
include ../build-aux/dirs.mak
|
|
|
|
OPTLEVEL?=-g -O2
|
|
CXXFLAGS?=$(OPTLEVEL)
|
|
|
|
CXXFLAGS:=$(CXXFLAGS) -std=gnu++11 -Wall -Wextra -fno-exceptions -fno-rtti
|
|
|
|
BINARY:=trianglix
|
|
|
|
LIBS:=-ldispd
|
|
|
|
all: $(BINARY)
|
|
|
|
.PHONY: all install uninstall clean
|
|
|
|
install: all
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
|
install $(BINARY) $(DESTDIR)$(BINDIR)
|
|
|
|
%: %.cpp
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -o $@ $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(BINARY) *.o
|