Permalink
Browse files

now using some ldflags, on certain platforms.

  • Loading branch information...
1 parent 9aa0f03 commit 59d20accb379f2223a8013bc3ff76daf998a2f55 lindes committed Aug 24, 2001
Showing with 10 additions and 1 deletion.
  1. +2 −1 Makefile
  2. +8 −0 ldflags
View
3 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
View
8 ldflags
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+case `uname -s` in
+ SunOS) echo "-lkstat";;
+ *)
+ # most stuff doesn't need anything special
+ ;;
+esac

0 comments on commit 59d20ac

Please sign in to comment.