SHA256
1
0
forked from pool/i3status
i3status/i3status-2.7-makefile.patch
Togan Muftuoglu 5b122ac871 Accepting request 159299 from home:toganm:branches:X11:windowmanagers
- Update to 2.7 version
  * Skip a day in the Discordian calendar when St. Tib's Day has
    passed
  * colors: Handle down wireless interfaces just like ethernet
    interfaces
  * temperature: introduce max_threshold
  * battery: colorize output even without discharge rate
  * ddate: Reduce the season day to 0-9 to properly print ordinal
    suffixes
  * add good, degraded and bad colors per module
  * config: introduce an utf-8 character so that editors are forced
    to use utf-8
  * ddate: Teen ordinal numbers always use a 'th' suffix.
  * make SIGUSR1 do nothing, so that killall -USR1 i3status will
    force an update
  * changing volume color from bad to degraded if muted
  * make refreshs align with minutes
  * wifi: properly display ad-hoc networks
  * Bugfix: output auto detect: properly detect ambiguous situations
  * Add tztime module to support multiple different timezones
  * battery: add option to show capacity without decimals
  * Add colorized output for load avg
  * ipv6: properly handle colors for output_format == xmobar
  * contrib: fix premature insetion of status message into JSON
- Spec file cleanup
  * rebased i3status-makefile.patch and renamed as
    i3status-2.7-makefile.patch

OBS-URL: https://build.opensuse.org/request/show/159299
OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/i3status?expand=0&rev=3
2013-03-14 10:39:59 +00:00

47 lines
1.0 KiB
Diff

From: Togan Muftuoglu <toganm@opensuse.org>
Date: 2013-03-14 10:04:55 +0100
Subject: Enable optflags in Makefile
References:
Upstream: no
---
Makefile | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
--- a/Makefile
+++ b/Makefile
@@ -10,9 +10,9 @@ ifndef SYSCONFDIR
endif
CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
-CFLAGS+=-g
CFLAGS+=-std=gnu99
CFLAGS+=-pedantic
+CFLAGS+=$(OPTFLAGS)
CPPFLAGS+=-DSYSCONFDIR=\"$(SYSCONFDIR)\"
CPPFLAGS+=-DVERSION=\"${GIT_VERSION}\"
CFLAGS+=-Iinclude
@@ -56,19 +56,15 @@ OBJS:=$(wildcard src/*.c *.c)
OBJS:=$(OBJS:.c=.o)
src/%.o: src/%.c include/i3status.h
- @$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
- @echo " CC $<"
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
%.o: %.c include/%.h
- @$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
- @echo " CC $<"
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
all: i3status manpage
i3status: ${OBJS}
- @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
- @echo " LD $@"
-
+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
clean:
rm -f *.o src/*.o