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