summaryrefslogtreecommitdiff
path: root/app-text/expander/files/expander-2.05-gentoo.patch
blob: 460a8164cee5fe364845d4db82fc63f8900ddf16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,15 +3,14 @@
 bindir = $(BINDIR)/
 
 copy     = ln -fs
-CFLAGS  += -v -g # -DNEED_GETOPT_PROTO_TYPE
-compiler = cc $(CFLAGS)
+compiler = $(CC) $(CFLAGS)
 
 executables = expander boxcomment align_columns align_comments where_is
 
 #--------------
 # Build Targets
 #--------------
-all: verify $(executables)
+all: $(executables)
 
 verify:
 	@if [ "$(bindir)" = "/" ]; then \
@@ -24,32 +23,31 @@
 # Abbreviation expansion filter program (with NEdit, language sensitive)
 #-----------------------------------------------------------------------
 expander: expander.c             
-	$(compiler) -o $(bindir)$@ $?  
+	$(compiler) $(LDFLAGS) -o $@ $?
 
 #--------------------------------------------------------------------------
 # Surround given text with open ended box. (with NEdit, language sensitive)
 #--------------------------------------------------------------------------
 boxcomment: boxcomment.c
-	$(compiler) -o $(bindir)$@ $?
-	@if [ ! -f $(bindir)un$@ ]; then $(copy) $(bindir)$@ $(bindir)un$@; fi
+	$(compiler) $(LDFLAGS) -o $@ $?
 
 #-------------------------------------------------------------------------------
 # Align ragged looking 'C' style comments (good substitute for align_equals too)
 #-------------------------------------------------------------------------------
 align_comments: align_comments.c
-	$(compiler) -o $(bindir)$@ $?
+	$(compiler) $(LDFLAGS) -o $@ $?
 
 #----------------------------
 # Align given text in columns
 #----------------------------
 align_columns: align_columns.c
-	$(compiler) -o $(bindir)$@ $?
+	$(compiler) $(LDFLAGS) -o $@ $?
 
 #----------------------------------------------
 # File locator (substitute for which, where...)
 #----------------------------------------------
 where_is: where_is.c
-	$(compiler) -o $(bindir)$@ $?
+	$(compiler) $(LDFLAGS) -o $@ $?
 
 #------------------------------------------------
 # Here is how to uninstall the executables built.