1CC=gcc
2CXX=g++
3RM=rm -f
4CPPFLAGS=-g $(shell root-config --cflags)
5LDFLAGS=-g $(shell root-config --ldflags)
6LDLIBS=$(shell root-config --libs)
7
8SRCS=tool.cc support.cc
9OBJS=$(subst .cc,.o,$(SRCS))
10
11all: tool
12
13tool: $(OBJS)
14 $(CXX) $(LDFLAGS) -o tool $(OBJS) $(LDLIBS)
15
16tool.o: tool.cc support.hh
17
18support.o: support.hh support.cc
19
20clean:
21 $(RM) $(OBJS)
22
23distclean: clean
24 $(RM) tool
25
1CC=gcc
2CXX=g++
3RM=rm -f
4CPPFLAGS=-g $(shell root-config --cflags)
5LDFLAGS=-g $(shell root-config --ldflags)
6LDLIBS=$(shell root-config --libs)
7
8SRCS=tool.cc support.cc
9OBJS=$(subst .cc,.o,$(SRCS))
10
11all: tool
12
13tool: $(OBJS)
14 $(CXX) $(LDFLAGS) -o tool $(OBJS) $(LDLIBS)
15
16tool.o: tool.cc support.hh
17
18support.o: support.hh support.cc
19
20clean:
21 $(RM) $(OBJS)
22
23distclean: clean
24 $(RM) tool
25
1CC=gcc
2CXX=g++
3RM=rm -f
4CPPFLAGS=-g $(shell root-config --cflags)
5LDFLAGS=-g $(shell root-config --ldflags)
6LDLIBS=$(shell root-config --libs)
7
8SRCS=tool.cc support.cc
9OBJS=$(subst .cc,.o,$(SRCS))
10
11all: tool
12
13tool: $(OBJS)
14 $(CXX) $(LDFLAGS) -o tool $(OBJS) $(LDLIBS)
15
16tool.o: tool.cc support.hh
17
18support.o: support.hh support.cc
19
20clean:
21 $(RM) $(OBJS)
22
23distclean: clean
24 $(RM) tool