From 59d20accb379f2223a8013bc3ff76daf998a2f55 Mon Sep 17 00:00:00 2001 From: lindes Date: Fri, 24 Aug 2001 20:56:47 +0000 Subject: [PATCH] now using some ldflags, on certain platforms. --- Makefile | 3 ++- ldflags | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 ldflags diff --git a/Makefile b/Makefile index d2f724c..c261fde 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ INSTALLDIR = /usr/local/bin ARCH = `uname -s` +LDFLAGS = `./ldflags` OBJS = arch/${ARCH}/getload.o arch/default/homebrews.o @@ -42,7 +43,7 @@ ttyload.c: ttyload.h Version # have to be explicit here, for some make systems, like .c.o below: ttyload: $(OBJS) ttyload.o - $(CC) -o $@ $(OBJS) ttyload.o + $(CC) $(LDFLAGS) -o $@ $(OBJS) ttyload.o clean: rm -f *.o $(OBJS) core a.out diff --git a/ldflags b/ldflags new file mode 100755 index 0000000..764f467 --- /dev/null +++ b/ldflags @@ -0,0 +1,8 @@ +#!/bin/sh + +case `uname -s` in + SunOS) echo "-lkstat";; + *) + # most stuff doesn't need anything special + ;; +esac