CC	= /opt/gcc/bin/gcc
CFLAGS	=  -DIN_GCC -fPIC -shared -O2 -fvisibility=hidden -Wall		\
	   -I/usr/src/gcc-4.5.3/mpc/src/				\
	   -I/usr/src/gcc-4.5.3/mpfr/					\
	   -I/opt/gcc/lib/gcc/i686-pc-linux-gnu/4.5.3/plugin/include	\
	   -I/usr/src/gcc-build/gmp/					\
	   -DDEBUG -m32 -mtune=core2
# -I/home/vpk/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/plugin/include/
#	   -DDEBUG -m64 -mtune=core2

# do not make changes below this line
SRC		= kguard.c
SHARED_OBJ	= $(SRC:.c=.so)

# phony targets
.PHONY: all clean

# default target
all: $(SHARED_OBJ)

# build the shared library
$(SHARED_OBJ): $(SRC) $(SRC:.c=.h)
	$(CC) $(CFLAGS) $(SRC) -o $@

# clean
clean:
	rm -rf $(SHARED_OBJ)
