# Compiler/linker setup ------------------------------------------------------

# Mac OS X-specific flags.  Comment these out if using Linux.
#PLATFORM = osx
#CC       = gcc
#CFLAGS   = -fast -Wall
#OSLIBS   = -Wl,-framework -Wl,IOKit
#LDFLAGS  =

# Linux-specific flags.  Comment these out if using Mac OS X.
PLATFORM = linux
CC       = gcc
CFLAGS   = -O3 -Wall 
OSLIBS   =
LDFLAGS  =

# make all: all OBJS are compiled and executable available
# make <individual>
# make clean
# Example programs -----------------------------------------------------------

OBJS = bsort
all: $(OBJS)

bsort: bsort.c bsort_fun.o
	$(CC) $(CFLAGS) -o bsort bsort.c bsort_fun.o

# library
bsort_fun.o: bsort_fun.c bsort_fun.h
	$(CC) $(CFLAGS) -c bsort_fun.c

# Maintenance and stuff ------------------------------------------------------
clean:
	rm -f $(OBJS) *.o core


