DEBUGFLAGS = -g
CFLAGS     = -Wall $(DEBUGFLAGS) $(INCLUDEPATH) -D_GNU_SOURCE=1
LDFLAGS    = $(LIBPATH)

AR      = ar
RANLIB  = ranlib

LIBSUNPROBE = libsunprobe.a

OBJECTS = sunprobe.o
SOURCES = sunprobe.c
HEADERS = sunprobe.h

all: $(LIBSUNPROBE)

$(LIBSUNPROBE) : $(OBJECTS)
	$(AR) cr $(LIBSUNPROBE) $(OBJECTS)
	$(RANLIB) $(LIBSUNPROBE)

$(OBJECTS): $(SOURCES) $(HEADERS)

clean:
	rm -f *.o *.a *~ core
