Commits

Yuya Nishihara  committed f7df544

several makefile fixes for debian

  • Participants
  • Parent commits c48af25

Comments (0)

Files changed (3)

File make-cflags-default.diff

+# HG changeset patch
+# Parent 1ee4d5ffb721bfad75c3129ab908912af4028774
+diff --git a/Makefile b/Makefile
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+ 
+-CFLAGS = -Wall -Wextra -Wno-unused-parameter -g -O2
++CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -g -O2
+ 
+ headers = $(wildcard src/*.h)
+ sources = $(wildcard src/*.c)

File make-ldflags.diff

+# HG changeset patch
+# Parent 9cbf272265e8a569c8158869246ddf8fefd03e77
+
+diff --git a/Makefile b/Makefile
+--- a/Makefile
++++ b/Makefile
+@@ -6,11 +6,12 @@ sources = $(wildcard src/*.c)
+ objects = $(subst .c,.o,$(sources))
+ 
+ vcprompt: $(objects)
+-	$(CC) -o $@ $(objects)
++	$(CC) $(LDFLAGS) -o $@ $(objects)
+ 
+ # build a standalone version of capture_child() library for testing
+ src/capture: src/capture.c src/capture.h src/common.c src/common.h
+-	$(CC) -DTEST_CAPTURE $(CFLAGS) -o $@ src/capture.c src/common.c
++	$(CC) $(LDFLAGS) -DTEST_CAPTURE $(CFLAGS) -o $@ \
++		src/capture.c src/common.c
+ 
+ # Maximally pessimistic view of header dependencies.
+ $(objects): $(headers)
+make-ldflags.diff
+make-cflags-default.diff
 debian.diff