DEBUGFLAGS = -g CFLAGS = -Wall $(DEBUGFLAGS) $(INCLUDEPATH) -D_GNU_SOURCE=1 LDFLAGS = $(LIBPATH) AR = ar RANLIB = ranlib LIBSBUSPROBE = libsbusprobe.a OBJECTS = sbusprobe.o SOURCES = sbusprobe.c HEADERS = sbusprobe.h all: $(LIBSBUSPROBE) test-sbusprobe test-sbusprobe: test-sbusprobe.o $(LIBSBUSPROBE) test-sbusprobe.o: test-sbusprobe.c $(LIBSBUSPROBE) : $(OBJECTS) $(AR) cr $(LIBSBUSPROBE) $(OBJECTS) $(RANLIB) $(LIBSBUSPROBE) $(OBJECTS): $(SOURCES) $(HEADERS) clean: rm -f *.o *.a *~ core test-sbusprobe test-sbusprobe.o