| 1 | include $(top_rulesdir)/Makefile.inc |
| 2 | |
| 3 | # Upstream enables LTO by default, but we don't want it. We need to |
| 4 | # put -fno-lto in the CFLAGS *environment* variable so it comes after |
| 5 | # the -flto option but does not override other necessary options |
| 6 | # appended to CFLAGS by upstream. |
| 7 | MAKE_UPSTREAM_ENV = CFLAGS=-fno-lto |
| 8 | |
| 9 | # Use the version of libcpupower that we just built |
| 10 | CPPFLAGS += -I$(top_srcdir)/tools/power/cpupower/lib -I$(top_srcdir)/tools/lib |
| 11 | LDFLAGS += -L$(CURDIR)/../../power/cpupower |
| 12 | |
| 13 | all: |
| 14 | $(MAKE_UPSTREAM) |
| 15 | |
| 16 | install: |
| 17 | $(MAKE_UPSTREAM) install |
| 18 | ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 19 | rm -rf $(DESTDIR)/usr/share/man |
| 20 | endif |