feature #2
41
Makefile
41
Makefile
@@ -1,41 +0,0 @@
|
||||
ifndef verbose
|
||||
SILENT = @
|
||||
endif
|
||||
|
||||
CC := gcc
|
||||
AR := ar
|
||||
CFLAGS := -I include/
|
||||
|
||||
ifeq ($(colorized), y)
|
||||
CFLAGS += -D COLORIZED
|
||||
endif
|
||||
|
||||
ifeq ($(no_banner), y)
|
||||
CFLAGS += -D NO_BANNER
|
||||
endif
|
||||
|
||||
ifeq ($(testing), y)
|
||||
CFLAGS += -g2 -O0
|
||||
else
|
||||
CFLAGS += -O2
|
||||
endif
|
||||
|
||||
all: create_output_dir libset.a
|
||||
|
||||
clean:
|
||||
$(SILENT) rm -rf int/
|
||||
$(SILENT) rm -f libset.a
|
||||
|
||||
create_output_dir:
|
||||
$(SILENT) mkdir -p int/
|
||||
|
||||
libset.a: $(patsubst src/%.c, int/%.o, $(wildcard src/*.c))
|
||||
@echo "Archiving $^ to $@"
|
||||
$(SILENT) $(AR) rcs $@ int/**.o
|
||||
|
||||
# Recipe
|
||||
int/%.o: src/%.c
|
||||
@echo "Building $< => $@"
|
||||
$(SILENT) $(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
.PHONY: all clean test create_output_dir
|
@@ -86,7 +86,7 @@ static void dispatch_single_test(struct SETest *test)
|
||||
{
|
||||
test->function(test);
|
||||
log_test_summary(test);
|
||||
// set_free_all();
|
||||
set_free_all();
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
@@ -54,6 +54,7 @@ void *set_malloc(size_t n)
|
||||
if (block_meta_head == NULL)
|
||||
{
|
||||
meta->end = meta;
|
||||
block_meta_head = meta;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -73,7 +73,7 @@ TEST(Other_With_Malloc)
|
||||
}
|
||||
fprintf(stdout, ".\n");
|
||||
|
||||
ASSERT_TRUE(true);
|
||||
ASSERT_TRUE(false);
|
||||
}
|
||||
|
||||
SUIT_ST(Other, Basic_Setup, EMPTY)
|
||||
|
Reference in New Issue
Block a user