File: Makefile

package info (click to toggle)
vdr-plugin-fritzbox 1.5.3-7.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 788 kB
  • sloc: cpp: 4,829; makefile: 94; sh: 15
file content (25 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
AFILE = $(notdir $(subst /.a,.a,$(addsuffix .a,$(CURDIR))))
OBJS  = $(patsubst %.cpp,%.o,$(wildcard *.cpp))

.PHONY: all clean

all: $(AFILE) 

%.o: %.cpp
	$(CXX) $(CXXFLAGS) -o $@ -c $<
	
$(AFILE): $(OBJS)
	@ar ru $(AFILE) $(OBJS)
	
clean:
	@-rm -f $(AFILE) $(OBJS) $(DEPFILE)

###
# Dependencies:

MAKEDEP = $(CXX) -MM -MG
DEPFILE = .dependencies
$(DEPFILE): Makefile
	@$(MAKEDEP) $(DEFINES) $(CXXFLAGS) $(OBJS:%.o=%.cpp) > $@

-include $(DEPFILE)