Thursday, February 08, 2007

GNUmakefile for a basic library

GNUmakefile for a static library, testlib.a, including a single file, hello.c

OBJS = hello.o

CFILES := ${OBJS:.o=.c}
LDFLAGS =
ARFLAGS = rcv

all:: testlib.a

testlib.a: ${OBJS}
@$(AR) ${ARFLAGS} $@ $?

clean::
@$(RM) ${OBJS} testlib.a

Labels:

Monday, January 22, 2007

I never learned this in school.

Actually, I haven't had to format a Linux partition manually since (maybe) I experimented with Slackware in 1995. So, when I had a nice little 400 GB USB HD with three partitions (two NTFS, one Linux), I was somewhat at a loss as to how to proceed.

I found this handy guide to partitioning and formatting mkfs.ext3.

Ahhh... I have access now.

Labels: