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.
 
 
 

22 lines
378 B

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