You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
649 B
Makefile
24 lines
649 B
Makefile
CXX=g++
|
|
CXXFLAGS=-I./memflow_lib/memflow-win32-ffi/ -I./memflow_lib/memflow-ffi/ -L./memflow_lib/target/release -Wno-multichar
|
|
LIBS=-lm -Wl,--no-as-needed -ldl -lpthread -l:libmemflow_win32_ffi.a
|
|
|
|
OUTDIR=./build
|
|
OBJDIR=$(OUTDIR)/obj
|
|
|
|
$(shell mkdir -p $(OBJDIR))
|
|
$(shell cp memflow_lib/memflow-qemu-procfs/target/release/libmemflow_qemu_procfs.so $(OUTDIR))
|
|
|
|
%.o: %.cpp
|
|
$(CXX) -c -o $(OBJDIR)/$@ $< $(CXXFLAGS)
|
|
|
|
apex_dma: apex_dma.o Game.o Math.o memory.o
|
|
$(CXX) -o $(OUTDIR)/$@ $(OBJDIR)/apex_dma.o $(OBJDIR)/Game.o $(OBJDIR)/Math.o $(OBJDIR)/memory.o $(CXXFLAGS) $(LIBS)
|
|
|
|
.PHONY: all
|
|
all: apex_dma
|
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
clean:
|
|
rm -rf $(OUTDIR)
|