blob: 3957260aed97d0e0380f1f5c424929bd08214168 (
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.6.orig/src/Makefile.in 2009-02-09 10:58:53.000000000 +0100
+++ gpm-1.20.6/src/Makefile.in 2011-01-11 16:48:43.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@ lib/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
@@ -148,11 +148,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@
|