* updated ktuberling (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / base / fgetty / makefile.patch
blob54a8cf640104bc8c00727dfd40b805f16158ed1c
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../fgetty/makefile.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- fgetty-0.6/Makefile 2002-01-24 02:35:22.000000000 +0100
18 +++ fgetty-0.6-cross/Makefile 2005-02-08 09:14:21.264376496 +0100
19 @@ -5,18 +5,20 @@
20 all: fgetty login login2 checkpassword
22 DIET=diet
23 +CC=gcc
24 +STRIP=strip
25 #CROSS=arm-linux-
26 CROSS=
27 LDFLAGS=-s
29 %.o: %.c
30 # gcc -march=i386 -mcpu=i386 -pipe -Os -fomit-frame-pointer -I../dietlibc/include -c $^ -DTEST
31 - $(DIET) $(CROSS)gcc -pipe -Os -fomit-frame-pointer -I../dietlibc/include -c $^ -DTEST
32 + $(DIET) $(CROSS)$(CC) -pipe -Os -fomit-frame-pointer -I../dietlibc/include -c $^ -DTEST
33 # gcc -march=i386 -mcpu=i386 -pipe -g -I../dietlibc/include -DTEST -c $^
34 - strip -x -R .comment -R .note $@
35 + $(CROSS)$(STRIP) -x -R .comment -R .note $@
37 %: %.o
38 - $(DIET) $(CROSS)gcc -nostdlib -o $@ $^ $(LDFLAGS)
39 + $(DIET) $(CROSS)$(CC) -nostdlib -o $@ $^ $(LDFLAGS)
41 fgetty: fgetty.o fmt_ulong.o
43 @@ -25,7 +26,7 @@
44 checkpassword: checkpassword.o
46 debug: fgetty.c fmt_ulong.o
47 - gcc -g -o debug fgetty.c fmt_ulong.o -DDEBUG
48 + $(CROSS)$(CC) -g -o debug fgetty.c fmt_ulong.o -DDEBUG
50 install:
51 install -d $(DESTDIR)/bin $(DESTDIR)/sbin