# makefile for bitlib

OPT_IA32 = -Wall -O2 -march=pentium4
OPT_PPC  = -Wall -O2 -mcpu=G4

OBJS=lbitlib.o
SRCS=lbitlib.c

all: so

# shared libraries (for Linux)
so: $(OBJS)
	$(CC) $(OPT_IA32) $(CFLAGS) -o bit.so -shared $(OBJS)

bundle: $(OBJS)
	$(CC) $(OPT_PPC) $(CFLAGS) -o bit.bundle -bundle -undefined dynamic_lookup $(OBJS)

clean:
	rm -f $(OBJS) *.so *.bundle
