mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
ac1f770f92
Create 'devices' directory for virtual device sources and move MPC106 source to it.
27 lines
434 B
Makefile
27 lines
434 B
Makefile
EXE := dingusppc
|
|
MODULES := . devices
|
|
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)
|
|
|
|
-include $(DEPS)
|