11a739e719992caed23fdf9c35957417d21c80541Mark KoudritskyBINDIR=/usr/bin 21a739e719992caed23fdf9c35957417d21c80541Mark KoudritskyLOCALESDIR=/usr/share/locale 31a739e719992caed23fdf9c35957417d21c80541Mark KoudritskyMANDIR=/usr/share/man/man1 41a739e719992caed23fdf9c35957417d21c80541Mark KoudritskyWARNFLAGS=-Wall -W -Wshadow 5964a7dc21a2e74ef0ba01efc428cf9b01baa9b47Todd BrochCFLAGS?=-O1 -g ${WARNFLAGS} 6964a7dc21a2e74ef0ba01efc428cf9b01baa9b47Todd BrochCC?=gcc 7964a7dc21a2e74ef0ba01efc428cf9b01baa9b47Todd Broch 8964a7dc21a2e74ef0ba01efc428cf9b01baa9b47Todd Broch 909e78027653cc05218fa5bb5c4b8c71bf34bd1e4Mark Koudritsky# 10540af155fcd1016257478c22de8828b449d18085Puthikorn Voravootivat# The w in -lncursesw is not a typo; it is the wide-character version 111a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky# of the ncurses library, needed for multi-byte character languages 1209e78027653cc05218fa5bb5c4b8c71bf34bd1e4Mark Koudritsky# such as Japanese and Chinese etc. 131a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky# 140ac98a72887d9eba096caf2f24dffe68190374b2Todd Broch# On Debian/Ubuntu distros, this can be found in the 1509e78027653cc05218fa5bb5c4b8c71bf34bd1e4Mark Koudritsky# libncursesw5-dev package. 161a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky# 178f9bf6086f5b9f2ecd86f8a6e7a0ff045bebeb72Todd Broch 18b74d224b49cbc205d60b2238593695f3a79f964dRyan HarrisonOBJS = powertop.o config.o process.o misctips.o bluetooth.o display.o suggestions.o wireless.o cpufreq.o \ 198753d83937751e6d2eb2646ea5af68979bb76312Ilja H. Friedel sata.o xrandr.o ethernet.o cpufreqstats.o usb.o urbnum.o intelcstates.o 20440b4a856c75e6f947c6433f42545f865ce647c1Chris Masone 211a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky 221a739e719992caed23fdf9c35957417d21c80541Mark Koudritskypowertop: $(OBJS) Makefile powertop.h 2309e78027653cc05218fa5bb5c4b8c71bf34bd1e4Mark Koudritsky $(CC) ${CFLAGS} $(OBJS) -lncursesw -o powertop 241a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky @(cd po/ && $(MAKE)) 251a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky 261a739e719992caed23fdf9c35957417d21c80541Mark Koudritskypowertop.1.gz: powertop.1 271a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky gzip -c $< > $@ 281a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky 291a739e719992caed23fdf9c35957417d21c80541Mark Koudritskyinstall: powertop powertop.1.gz 301a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky mkdir -p ${DESTDIR}${BINDIR} 3109e78027653cc05218fa5bb5c4b8c71bf34bd1e4Mark Koudritsky cp powertop ${DESTDIR}${BINDIR} 321a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky mkdir -p ${DESTDIR}${MANDIR} 331a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky cp powertop.1.gz ${DESTDIR}${MANDIR} 349d5a0ace586069861df87d35daf5f92eb9b77230Todd Broch @(cd po/ && env LOCALESDIR=$(LOCALESDIR) DESTDIR=$(DESTDIR) $(MAKE) $@) 359d5a0ace586069861df87d35daf5f92eb9b77230Todd Broch 369d5a0ace586069861df87d35daf5f92eb9b77230Todd Broch# This is for translators. To update your po with new strings, do : 379d5a0ace586069861df87d35daf5f92eb9b77230Todd Broch# svn up ; make uptrans LG=fr # or de, ru, hu, it, ... 389d5a0ace586069861df87d35daf5f92eb9b77230Todd Brochuptrans: 399d5a0ace586069861df87d35daf5f92eb9b77230Todd Broch xgettext -C -s -k_ -o po/powertop.pot *.c *.h 400dd8fb71470681de1a36d7fccc51454d843f35e8Mark Koudritsky @(cd po/ && env LG=$(LG) $(MAKE) $@) 410dd8fb71470681de1a36d7fccc51454d843f35e8Mark Koudritsky 420dd8fb71470681de1a36d7fccc51454d843f35e8Mark Koudritskyclean: 430dd8fb71470681de1a36d7fccc51454d843f35e8Mark Koudritsky rm -f *~ powertop powertop.1.gz po/powertop.pot DEADJOE svn-commit* *.o *.orig 44af5de98643110a67a9f5c323dd56be3eb1e35448Todd Broch @(cd po/ && $(MAKE) $@) 459d5a0ace586069861df87d35daf5f92eb9b77230Todd Broch 461a739e719992caed23fdf9c35957417d21c80541Mark Koudritsky 47d16f1daab3a354b637065b99dbc31809ce5674ddAlex Millerdist: 48d16f1daab3a354b637065b99dbc31809ce5674ddAlex Miller rm -rf .svn po/.svn DEADJOE po/DEADJOE todo.txt Lindent svn-commit.* dogit.sh git/ *.rej *.orig 49d16f1daab3a354b637065b99dbc31809ce5674ddAlex Miller