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