mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-05-29 09:41:33 +00:00
Fixed CMakeLists errors and deleted makefile
This commit is contained in:
parent
684a8dee8e
commit
71a1b2eb63
|
@ -2,8 +2,7 @@ cmake_minimum_required(VERSION 3.1)
|
||||||
project(dingusppc)
|
project(dingusppc)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-c -Wall -O3 -s")
|
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-c -Wall -O3 -s")
|
||||||
|
|
||||||
|
@ -12,17 +11,16 @@ set(SOURCE_FILES
|
||||||
devices/memctrlbase.cpp
|
devices/memctrlbase.cpp
|
||||||
devices/mpc106.cpp
|
devices/mpc106.cpp
|
||||||
devices/viacuda.cpp
|
devices/viacuda.cpp
|
||||||
|
debugger/debugger.cpp
|
||||||
poweropcodes.cpp
|
poweropcodes.cpp
|
||||||
ppcfpopcodes.cpp
|
ppcfpopcodes.cpp
|
||||||
ppcgekkoopcodes.cpp
|
ppcgekkoopcodes.cpp
|
||||||
ppcmemory.cpp
|
ppcmemory.cpp
|
||||||
ppcopcodes.cpp
|
ppcopcodes.cpp
|
||||||
main.cpp
|
main.cpp
|
||||||
debugger.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(HEADER_FILES
|
set(HEADER_FILES
|
||||||
devices/heathrow.cpp
|
|
||||||
devices/machineid.h
|
devices/machineid.h
|
||||||
devices/macio.h
|
devices/macio.h
|
||||||
devices/memctrlbase.h
|
devices/memctrlbase.h
|
||||||
|
@ -31,9 +29,9 @@ set(HEADER_FILES
|
||||||
devices/pcidevice.h
|
devices/pcidevice.h
|
||||||
devices/pcihost.h
|
devices/pcihost.h
|
||||||
devices/viacuda.h
|
devices/viacuda.h
|
||||||
|
debugger/debugger.h
|
||||||
ppcemumain.h
|
ppcemumain.h
|
||||||
ppcmemory.h
|
ppcmemory.h
|
||||||
debugger.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(dingusppc ${SOURCE_FILES} ${HEADER_FILES})
|
add_executable(dingusppc ${SOURCE_FILES} ${HEADER_FILES})
|
||||||
|
|
27
makefile
27
makefile
|
@ -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)
|
|
Loading…
Reference in New Issue
Block a user