mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 15:52:40 -04:00
git-subtree-dir: contrib/libdiff git-subtree-mainline:f6d489f402git-subtree-split:9eb461aa4bReviewed by: imp Sponsored by: Klara, Inc.
20 lines
589 B
Makefile
20 lines
589 B
Makefile
.PHONY: regress clean
|
|
|
|
CFLAGS = -fsanitize=address -fsanitize=undefined -g -O3
|
|
CFLAGS += -Wstrict-prototypes -Wunused-variable -Wuninitialized
|
|
|
|
CFLAGS+= -I$(CURDIR)/../../compat/include \
|
|
-I$(CURDIR)/../../include \
|
|
-I$(CURDIR)/../../lib
|
|
|
|
$(CURDIR)/arraylist_test: $(CURDIR)/../arraylist_test.c $(CURDIR)/../../lib/libdiff.a
|
|
gcc $(CFLAGS) -o $@ $^
|
|
|
|
$(CURDIR)/../../lib/libdiff.a: $(CURDIR)/../../lib/*.[hc] $(CURDIR)/../../include/*.h
|
|
$(MAKE) -C $(CURDIR)/../../lib
|
|
|
|
regress: $(CURDIR)/arraylist_test
|
|
$(CURDIR)/arraylist_test
|
|
|
|
clean:
|
|
-rm $(CURDIR)/arraylist_test
|