forked from pool/sunwait
- 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
31 lines
560 B
Diff
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
|
|
|
|
|