You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
318 B

objs = main.o
CC = clang
OUT_NAME = the_alloc
dev: FLAGS= -g -D UNIT_TESTS
dev: $(OUT_NAME)
valgrind ./$(OUT_NAME)
release: FLAGS= -O2
release: clean $(OUT_NAME)
rm *.o
$(OUT_NAME): $(objs)
$(CC) $(FLAGS) -o $(OUT_NAME) $(objs)
clean:
rm -f *.o $(OUT_NAME)
main.o: main.c
$(CC) $(FLAGS) -c main.c -o main.o