tralloc

A C library that adds size information to memory allocations.
git clone git://src.gearsix.net/tralloc
Log | Files | Refs | Atom | README

Makefile (274B)


      1 NAME=tralloc
      2 INC=$(NAME).h
      3 SRC=$(NAME).c
      4 OBJ=$(NAME).o
      5 CFLAGS=-Wall -ansi -pedantic
      6 
      7 all:
      8 	${CC} $(CFLAGS) -c $(SRC)
      9 	ar -rc $(NAME).a $(OBJ)
     10 
     11 test:
     12 	rm -f test
     13 	${CC} -Wall -pedantic -g -DTRALLOC_WRAP -o test test.c tralloc.c
     14 	@./test
     15 
     16 clean:
     17 	rm -f $(NAME).a $(OBJ) test
     18