summaryrefslogtreecommitdiffstats
path: root/boilerplate.mk
blob: 82ac68b9d74920f0e314348a7dc877f18732534e (plain)
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
26
27
28
29
30
31
32
33
34
35
36
all::
	@subdirs="$(SUBDIRS)"; for d in $$subdirs; do (cd $$d; $(MAKE) $@) || exit 1; done

clean::
	@subdirs="$(SUBDIRS)"; for d in $$subdirs; do (cd $$d; $(MAKE) $@) || exit 1; done

clean::
	rm -f $(program) $(library) *.o

SHELL = @SHELL@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
@SET_MAKE@
CC = @CC@
CFLAGS = @CFLAGS@ $(DIR_CFLAGS)
CCLD = $(CC)
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
CXXLD = $(CXX)
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@
ALL_CPPFLAGS = $(CPPFLAGS) $(DEFS) $(DIR_CPPFLAGS)
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
RANLIB = @RANLIB@
AR = ar cq

.SUFFIXES:
.SUFFIXES: .cxx .c .o

.c.o:
	$(CC) $(ALL_CPPFLAGS) $(CFLAGS) -c $<

.cxx.o:
	$(CXX) $(ALL_CPPFLAGS) $(CXXFLAGS) -c $<