Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (17 sloc) 422 Bytes
.PHONY: all clean
OBJS=test.o
CC=gcc
#export CFLAGS=-m32
all: test
test: test.o test_provider.o
$(CC) $(CFLAGS) -o $@ $^
test.o: test.c test_provider.h
$(CC) $(CFLAGS) -g -c $<
test_provider.h: test_provider.d
dtrace -xnolibs -h -o $@ -s test_provider.d
test_provider.o: test_provider.d $(OBJS)
dtrace -xnolibs -G -o $@ -s $< $(OBJS)
install: all
cp test.d /usr/lib/dtrace/
clean:
rm -f *.o test_provider.h