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.

52 lines
1.6 KiB

  1. diff -Naur minit-0.10-orig/Makefile minit-0.10/Makefile
  2. --- minit-0.10-orig/Makefile 2005-04-08 19:24:04.000000000 +0200
  3. +++ minit-0.10/Makefile 2007-07-14 01:43:48.000000000 +0200
  4. @@ -34,19 +34,24 @@
  5. LDLIBS=-lowfat
  6. -libowfat_path = $(strip $(foreach dir,../libowfat*,$(wildcard $(dir)/textcode.h)))
  7. -ifneq ($(libowfat_path),)
  8. -CFLAGS+=$(foreach fnord,$(libowfat_path),-I$(dir $(fnord)))
  9. -LDFLAGS+=$(foreach fnord,$(libowfat_path),-L$(dir $(fnord)))
  10. +ifneq ($(libowfat_inc),)
  11. +CFLAGS+=-I$(libowfat_inc)
  12. +endif
  13. +ifneq ($(libowfat_lib),)
  14. +LDFLAGS+=-L$(libowfat_lib)
  15. endif
  16. minit: minit.o split.o openreadclose.o opendevconsole.o
  17. msvc: msvc.o
  18. minit-update: minit-update.o split.o openreadclose.o
  19. serdo: serdo.o
  20. +hard-reboot: hard-reboot.o
  21. +write_proc: write_proc.o
  22. +killall5: killall5.o
  23. +pidfilehack: pidfilehack.o
  24. shutdown: shutdown.o split.o openreadclose.o opendevconsole.o
  25. - $(DIET) $(CROSS)$(CC) $(LDFLAGS) -o shutdown $^
  26. + $(DIET) $(CROSS)$(CC) $(LDFLAGS) -o shutdown $^ $(LDLIBS)
  27. %.o: %.c
  28. $(DIET) $(CROSS)$(CC) $(CFLAGS) -c $<
  29. @@ -61,18 +66,6 @@
  30. test: test.c
  31. gcc -nostdlib -o $@ $^ -I../dietlibc/include ../dietlibc/start.o ../dietlibc/dietlibc.a
  32. -pidfilehack: pidfilehack.c
  33. - $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
  34. -
  35. -hard-reboot: hard-reboot.c
  36. - $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
  37. -
  38. -write_proc: write_proc.c
  39. - $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
  40. -
  41. -killall5: killall5.c
  42. - $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
  43. -
  44. install-files:
  45. install -d $(DESTDIR)/etc/minit $(DESTDIR)/sbin $(DESTDIR)/bin $(DESTDIR)$(MANDIR)/man8
  46. install minit pidfilehack $(DESTDIR)/sbin