summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/cmdwatch/files/patch-Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/sysutils/cmdwatch/files/patch-Makefile b/sysutils/cmdwatch/files/patch-Makefile
index be6a11b3f92b..0bdb8f65784b 100644
--- a/sysutils/cmdwatch/files/patch-Makefile
+++ b/sysutils/cmdwatch/files/patch-Makefile
@@ -5,11 +5,27 @@
all : startup $(OBJS)
- @$(CC) -o cmdwatch $(OBJS) -lcurses
-+ @$(CC) -o cmdwatch $(OBJS) $(LDFLAGS) -lncurses
++ @$(CC) $(CFLAGS) -o cmdwatch $(OBJS) $(LDFLAGS) -lncurses
@strip cmdwatch
@echo " done."
-@@ -26,9 +26,9 @@ clean :
+@@ -13,22 +13,22 @@ startup :
+ @echo -n "Making cmdwatch..."
+
+ getopt.o : getopt.c
+- @$(CC) -c getopt.c
++ @$(CC) $(CFLAGS) -c getopt.c
+
+ getopt1.o : getopt1.c
+- @$(CC) -c getopt1.c
++ @$(CC) $(CFLAGS) -c getopt1.c
+
+ cmdwatch.o : cmdwatch.c
+- @$(CC) -c cmdwatch.c
++ @$(CC) $(CFLAGS) -c cmdwatch.c
+
+ clean :
+ @echo "Making clean..."
@rm -f *.o cmdwatch
install : all