2019-08-18 23:34:24 +00:00
|
|
|
EXE := dingusppc
|
2019-12-14 12:48:54 +00:00
|
|
|
MODULES := . devices debugger
|
2019-08-18 23:34:24 +00:00
|
|
|
SRCS := $(foreach sdir,$(MODULES),$(wildcard $(sdir)/*.cpp))
|
|
|
|
#SRCS = $(wildcard *.cpp)
|
|
|
|
OBJS := $(patsubst %.cpp, %.o, $(SRCS))
|
2019-07-02 02:15:33 +00:00
|
|
|
|
2019-08-18 17:05:34 +00:00
|
|
|
CXX = g++
|
|
|
|
CXXFLAGS = -g -c -Wall -std=c++11
|
|
|
|
LFLAGS =
|
2019-07-02 02:15:33 +00:00
|
|
|
|
2019-08-18 23:34:24 +00:00
|
|
|
VPATH := devices
|
2019-07-17 13:24:34 +00:00
|
|
|
|
2019-08-18 23:34:24 +00:00
|
|
|
DEPS = $(OBJS:.o=.d)
|
|
|
|
|
|
|
|
all: $(EXE)
|
|
|
|
|
|
|
|
$(EXE) : $(OBJS)
|
|
|
|
$(CXX) -o $@ $^
|
|
|
|
|
|
|
|
%.o : %.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) -MMD -o $@ $<
|
2019-07-02 02:15:33 +00:00
|
|
|
|
|
|
|
clean:
|
2019-08-18 23:34:24 +00:00
|
|
|
rm -rf *.o *.d devices/*.o devices/*.d $(EXE)
|
2019-12-14 12:48:54 +00:00
|
|
|
rm -rf *.o *.d debugger/*.o debugger/*.d $(EXE)
|
2019-08-18 23:34:24 +00:00
|
|
|
|
|
|
|
-include $(DEPS)
|