(Hopefully) Get the i8080 test suite up and running on Linux.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2017-12-05 21:53:54 +00:00
parent 3d88a8f6d1
commit fb305268b1
2 changed files with 13 additions and 31 deletions

View File

@ -1,36 +1,8 @@
LIB = libintel8080.a
CXXFLAGS = -Wall -std=c++14 -pipe -I ../inc -I ../../inc
CXXFLAGS = -I ../inc -I ../../inc
CXXFILES = Disassembler.cpp Intel8080.cpp Profiler.cpp
CXXOBJECTS = $(CXXFILES:.cpp=.o)
SOURCES = $(CXXFILES)
OBJECTS = $(CXXOBJECTS)
PCH = stdafx.h.gch
all: opt
opt: CXXFLAGS += -DNDEBUG -march=native -O3 -flto
opt: $(LIB)
debug: CXXFLAGS += -g -D_DEBUG
debug: $(LIB)
coverage: CXXFLAGS += -g -D_DEBUG -fprofile-arcs -ftest-coverage
coverage: $(LIB)
$(PCH): stdafx.h
$(CXX) $(CXXFLAGS) -x c++-header $<
$(LIB): $(OBJECTS)
$(AR) $(ARFLAGS) $(LIB) $(OBJECTS)
%.o: %.cpp $(PCH)
$(CXX) $(CXXFLAGS) $< -c -o $@
.PHONY: clean
clean:
-rm -f $(LIB) $(OBJECTS) $(PCH)
include ../../compile.mk
include ../../lib_build.mk

10
Intel8080/test/Makefile Normal file
View File

@ -0,0 +1,10 @@
EXE = test_intel8080
CXXFLAGS = -I ../inc -I ../../inc
CXXFILES = Board.cpp Configuration.cpp test.cpp
LDFLAGS = -L ../src -L ../../src -lintel8080 -leightbit
include ../../compile.mk
include ../../exe_build.mk