1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../fgetty/makefile.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
20 all: fgetty login login2 checkpassword
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 $@
38 - $(DIET) $(CROSS)gcc -nostdlib -o $@ $^ $(LDFLAGS)
39 + $(DIET) $(CROSS)$(CC) -nostdlib -o $@ $^ $(LDFLAGS)
41 fgetty: fgetty.o fmt_ulong.o
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
51 install -d $(DESTDIR)/bin $(DESTDIR)/sbin