mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-03-06 06:30:14 +00:00
Add linux makefiles for parts of the EightBit library
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
640b2be670
commit
6f8cf74c36
36
Intel8080/src/Makefile
Normal file
36
Intel8080/src/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
LIB = libEightBit.a
|
||||
|
||||
CXXFLAGS = -Wall -std=c++11 -pipe -I ../inc
|
||||
|
||||
CXXFILES = EventArgs.cpp InputOutput.cpp IntelProcessor.cpp Memory.cpp Processor.cpp
|
||||
|
||||
CXXOBJECTS = $(CXXFILES:.cpp=.o)
|
||||
|
||||
SOURCES = $(CXXFILES)
|
||||
OBJECTS = $(CXXOBJECTS)
|
||||
|
||||
PCH = stdafx.h.gch
|
||||
|
||||
all: opt
|
||||
|
||||
opt: CXXFLAGS += -DNDEBUG -march=native -O2
|
||||
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)
|
35
src/Makefile
Normal file
35
src/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
CXXFLAGS = -Wall -std=c++11 -pipe -I ../inc
|
||||
|
||||
CXXFILES = EventArgs.cpp InputOutput.cpp IntelProcessor.cpp Memory.cpp Processor.cpp
|
||||
|
||||
CXXOBJECTS = $(CXXFILES:.cpp=.o)
|
||||
|
||||
SOURCES = $(CXXFILES)
|
||||
OBJECTS = $(CXXOBJECTS)
|
||||
|
||||
PCH = stdafx.h.gch
|
||||
|
||||
all: opt
|
||||
|
||||
opt: CXXFLAGS += -DNDEBUG -march=native -O2
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user