mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 00:29:47 +00:00
(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:
parent
3d88a8f6d1
commit
fb305268b1
@ -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
10
Intel8080/test/Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user