mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4 KiB

  1. cleanup makefile - use CC and STRIP macros
  2. diff -Naur fgetty-0.6-orig/Makefile fgetty-0.6/Makefile
  3. --- fgetty-0.6-orig/Makefile 2002-01-24 02:35:22.000000000 +0100
  4. +++ fgetty-0.6/Makefile 2007-07-13 18:26:33.202255084 +0200
  5. @@ -5,18 +5,20 @@
  6. all: fgetty login login2 checkpassword
  7. DIET=diet
  8. +CC=gcc
  9. +STRIP=strip
  10. #CROSS=arm-linux-
  11. CROSS=
  12. LDFLAGS=-s
  13. %.o: %.c
  14. # gcc -march=i386 -mcpu=i386 -pipe -Os -fomit-frame-pointer -I../dietlibc/include -c $^ -DTEST
  15. - $(DIET) $(CROSS)gcc -pipe -Os -fomit-frame-pointer -I../dietlibc/include -c $^ -DTEST
  16. + $(DIET) $(CROSS)$(CC) -pipe -Os -fomit-frame-pointer -I../dietlibc/include -c $^ -DTEST
  17. # gcc -march=i386 -mcpu=i386 -pipe -g -I../dietlibc/include -DTEST -c $^
  18. - strip -x -R .comment -R .note $@
  19. + $(CROSS)$(STRIP) -x -R .comment -R .note $@
  20. %: %.o
  21. - $(DIET) $(CROSS)gcc -nostdlib -o $@ $^ $(LDFLAGS)
  22. + $(DIET) $(CROSS)$(CC) -nostdlib -o $@ $^ $(LDFLAGS)
  23. fgetty: fgetty.o fmt_ulong.o
  24. @@ -25,7 +27,7 @@
  25. checkpassword: checkpassword.o
  26. debug: fgetty.c fmt_ulong.o
  27. - gcc -g -o debug fgetty.c fmt_ulong.o -DDEBUG
  28. + $(CROSS)$(CC) -g -o debug fgetty.c fmt_ulong.o -DDEBUG
  29. install:
  30. install -d $(DESTDIR)/bin $(DESTDIR)/sbin
  31. @@ -46,7 +48,7 @@
  32. %.sig: %
  33. gpg --detach-sign $<
  34. -VERSION=fgetty-$(shell head -1 CHANGES|sed 's/://')
  35. +VERSION=fgetty-$(shell head -n 1 CHANGES|sed 's/://')
  36. CURNAME=$(notdir $(shell pwd))
  37. tar: clean rename