SHA256
1
0
forked from pool/sunwait
Files
sunwait/sunwait-no-rpm-opt-flags.patch
Jan Baier 6b81137464 - update to version 20220613
- ADD standard(ish) unixy command line flags
    - Fix unused variable warning during compile.
    - Document use of an arbitrary date specification
- add sunwait-fix-parentheses.patch

OBS-URL: https://build.opensuse.org/package/show/science/sunwait?expand=0&rev=9
2022-08-04 16:42:37 +00:00

31 lines
560 B
Diff

diff --git makefile makefile
index 7aa7484..91740c3 100755
--- makefile
+++ makefile
@@ -7,7 +7,7 @@
C=gcc
-CFLAGS=-c -Wall
+CFLAGS=-c -Wall $(RPM_OPT_FLAGS)
LDFLAGS= -lm -lstdc++
SOURCES=sunwait.cpp sunriset.cpp print.cpp
HEADERS=sunwait.h sunriset.h print.h
@@ -15,7 +15,7 @@ OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=sunwait
all: $(SOURCES) $(EXECUTABLE)
-
+
$(EXECUTABLE): $(OBJECTS)
$(C) $(OBJECTS) -o $@ $(LDFLAGS)
@@ -23,6 +23,6 @@ $(EXECUTABLE): $(OBJECTS)
$(C) $(CFLAGS) $< -o $@
clean:
- rm -f *.o sunwait
+ $(RM) *.o sunwait