2
# Linux Makefile template
7
include ../Makefile.config
10
CXXFLAGS += -I@top_srcdir@
27
FAIL_ARCHS = arm m68k powerpc s390 sparc 3D s390x powerpc64
29
# Test for arm specifically, because arm can show up as a number of
30
# things prefixed by "arm"
31
# This means that no return value for host_cpu that contains a
32
# substring of "arm" will ever have a serialmeter. Oh well.
34
# With the ioperm checks in serialmeter.cc, this should no longer be
35
# necessary. In fact, it may no longer be necessary to perform this
36
# check at all, but it is left here just in case until this can be
39
# ifneq (,$(findstring arm, @host_cpu@))
47
ifneq (,$(findstring $(ARCH), $(FAIL_ARCHS)))
48
# Don't include serialmeter for above architectures
53
CFILES := $(OBJS:.o=.cc)
54
DEPFILES := $(OBJS:%=.%.d)
59
#-----------------------------------------------------------------------
61
all : libmeter.a @MEMSTAT@
67
rm -f $(OBJS) $(DEPFILES) libmeter.a *~
68
if test "@MEMSTAT@" = "MemStat"; then $(MAKE) -C memstat clean; fi
71
ar cvr libmeter.a $(OBJS)