Fixed CMakeLists errors and deleted makefile

This commit is contained in:
dingusdev 2019-12-14 12:56:43 -07:00
parent 684a8dee8e
commit 71a1b2eb63
2 changed files with 3 additions and 32 deletions

View File

@ -2,8 +2,7 @@ cmake_minimum_required(VERSION 3.1)
project(dingusppc)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-c -Wall -O3 -s")
@ -12,17 +11,16 @@ set(SOURCE_FILES
devices/memctrlbase.cpp
devices/mpc106.cpp
devices/viacuda.cpp
debugger/debugger.cpp
poweropcodes.cpp
ppcfpopcodes.cpp
ppcgekkoopcodes.cpp
ppcmemory.cpp
ppcopcodes.cpp
main.cpp
debugger.cpp
)
set(HEADER_FILES
devices/heathrow.cpp
devices/machineid.h
devices/macio.h
devices/memctrlbase.h
@ -31,9 +29,9 @@ set(HEADER_FILES
devices/pcidevice.h
devices/pcihost.h
devices/viacuda.h
debugger/debugger.h
ppcemumain.h
ppcmemory.h
debugger.h
)
add_executable(dingusppc ${SOURCE_FILES} ${HEADER_FILES})

View File

@ -1,27 +0,0 @@
EXE := dingusppc
MODULES := . devices debugger
SRCS := $(foreach sdir,$(MODULES),$(wildcard $(sdir)/*.cpp))
#SRCS = $(wildcard *.cpp)
OBJS := $(patsubst %.cpp, %.o, $(SRCS))
CXX = g++
CXXFLAGS = -g -c -Wall -std=c++11
LFLAGS =
VPATH := devices
DEPS = $(OBJS:.o=.d)
all: $(EXE)
$(EXE) : $(OBJS)
$(CXX) -o $@ $^
%.o : %.cpp
$(CXX) $(CXXFLAGS) -MMD -o $@ $<
clean:
rm -rf *.o *.d devices/*.o devices/*.d $(EXE)
rm -rf *.o *.d debugger/*.o debugger/*.d $(EXE)
-include $(DEPS)