summaryrefslogtreecommitdiff
path: root/boot/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-03-14 15:10:18 +0000
committerRoland McGrath <roland@gnu.org>1996-03-14 15:10:18 +0000
commit02eb09b31af8ffa7949b70983beb0b008c4930f2 (patch)
tree3402e1c41c596a6a045ba466b8bddc2651b112c6 /boot/Makefile
parent8a08c0a144e492e604e288221a072229dddc6694 (diff)
(boot): Depend on libthreads.so, nothing wrong with shared libs.
(uxboot.0, uxboot.1): Use automatic vars in cmds instead of gratuitous redundancy. (LDFLAGS-uxboot.0): Remove useless indirection through variable.
Diffstat (limited to 'boot/Makefile')
-rw-r--r--boot/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/boot/Makefile b/boot/Makefile
index 4646d18c..72d81890 100644
--- a/boot/Makefile
+++ b/boot/Makefile
@@ -31,27 +31,24 @@ DIST_FILES=frank1.ld frankemul.ld
include ../Makeconf
-#install: /usr/local/bin/boot
+#install: /usr/local/bin/uxboot
#
-#/usr/local/bin/boot: boot
-# cp boot /usr/local/bin/boot
+#/usr/local/bin/uxboot: uxboot
+# cp $< $@
all: boot uxboot
ourdevice.defs: $(includedir)/device/device.defs
sed -e '/out device : device_t/s/device_t/mach_port_send_t/' $< > $@
-LDFLAGS += $($@-LDFLAGS)
-
-boot: ../libthreads/libthreads.a
+boot: ../libthreads/libthreads.so
uxboot.o: boot.c
$(COMPILE.c) -DUX $< -o $@
-uxboot.0-LDFLAGS += -static -nostartfiles -Wl,-T -Wl,frank1.ld
uxboot.0: $(UX-OBJS) ../libthreads/libthreads.a
- $(LINK.o) -o $@ $(UX-OBJS) ../libthreads/libthreads.a
-uxboot.1: uxboot.0 frankemul.ld
- $(LD) -o $@ -T frankemul.ld uxboot.0
+ $(LINK.o) -o $@ -static -nostartfiles -Wl,-T -Wl,frank1.ld $^
+uxboot.1: frankemul.ld uxboot.0
+ $(LD) -o $@ -T $^
uxboot: uxboot.1
$(OBJCOPY) -S --remove-section=.comment -O a.out-mach3 $< $@