mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
Fixed CMakeLists errors and deleted makefile
This commit is contained in:
parent
684a8dee8e
commit
71a1b2eb63
@ -3,7 +3,6 @@ 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})
|
||||
|
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