summaryrefslogtreecommitdiff
path: root/package/gpm/patches/patch-src_Makefile_in
blob: 22824e974c5f05afa0f6e44df4797f53da688eb8 (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
--- gpm-1.20.7.orig/src/Makefile.in	2012-10-26 23:21:38.000000000 +0200
+++ gpm-1.20.7/src/Makefile.in	2013-12-22 12:46:27.000000000 +0100
@@ -59,19 +59,19 @@ STRIP = -s
 
 # the prog rules are not very clean...
 prog/%.o: prog/%.c
-	$(CC) -Iheaders @CPPFLAGS@ $(CPPFLAGS) @CFLAGS@ $(CFLAGS) -c -o $@ $<
+	$(CC) -Iheaders @CPPFLAGS@ @CFLAGS@ -c -o $@ $<
 
 prog/%:	prog/%.o
-	$(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $^ @LIBS@ $(LIBS)
+	$(CC) @LDFLAGS@ -o $@ $^ @LIBS@
 
 %.o: %.c
-	$(CC) @CPPFLAGS@ $(CPPFLAGS) @CFLAGS@ $(CFLAGS) -c -o $@ $<
+	$(CC) @CPPFLAGS@ @CFLAGS@ -c -o $@ $<
 
 %.lo:	%.c
-	$(CC) @CPPFLAGS@ $(CPPFLAGS) @PICFLAGS@ @CFLAGS@ $(CFLAGS) -c -o $@ $<
+	$(CC) @CPPFLAGS@ @PICFLAGS@ @CFLAGS@ -c -o $@ $<
 
 %:	%.o
-	$(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $^ @LIBS@ $(LIBS)
+	$(CC) @LDFLAGS@ -o $@ $^ @LIBS@
 
 # old, unused, but good rule [dependings]
 #%.d: $(srcdir)/%.c
@@ -82,7 +82,7 @@ prog/%:	prog/%.o
 all:	gpm lib/libgpm.so.@abi_lev@ @LIBGPM_A@ $(PROG)
 
 gpm:	$(GOBJ)
-	$(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $(GOBJ) @LIBS@ $(LIBS) -lm
+	$(CC) @LDFLAGS@ -o $@ $(GOBJ) @LIBS@ -lm
 
 # construct dependings of sourcefiles and link sourcefiles
 $(DEPFILE) dep: prog/gpm-root.c
@@ -150,11 +150,11 @@ prog/gpm-root.c:	$(srcdir)/prog/gpm-root
 
 # gpm-root needs an own rule, because gpm-root.c is not in $(srcdir)
 prog/gpm-root: prog/gpm-root.c lib/libgpm.so.@abi_lev@
-	$(CC) -I. @CPPFLAGS@ $(CPPFLAGS) @CFLAGS@ $(CFLAGS) -c -o $@.o $<
-	$(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $@.o @LIBS@ $(LIBS) lib/libgpm.so.@abi_lev@
+	$(CC) -I. @CPPFLAGS@ @CFLAGS@ -c -o $@.o $<
+	$(CC) @LDFLAGS@ -o $@ $@.o @LIBS@ lib/libgpm.so.@abi_lev@
 
 prog/mouse-test:	prog/mouse-test.o mice.o twiddler.o synaptics.o prog/open_console.o
-	$(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $^ @LIBS@ $(LIBS) -lm
+	$(CC) @LDFLAGS@ -o $@ $^ @LIBS@ -lm
 
 $(PROG):	lib/libgpm.so.@abi_lev@