now using some ldflags, on certain platforms.

This commit is contained in:
lindes 2001-08-24 20:56:47 +00:00
parent 9aa0f0304e
commit 59d20accb3
2 changed files with 10 additions and 1 deletions

View File

@ -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

8
ldflags Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
case `uname -s` in
SunOS) echo "-lkstat";;
*)
# most stuff doesn't need anything special
;;
esac