Files
cproof-plugins/tests/test-c-plugin/Makefile
2016-03-28 15:54:16 +01:00

19 lines
388 B
Makefile

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LINK_FLAGS := -fno-common -flat_namespace -bundle -undefined suppress
else
LINK_FLAGS := -shared -fpic
endif
all: test-c-plugin.so
%.so:%.o
$(CC) $(LINK_FLAGS) -lprofanity -o $@ $^
%.o:%.c
$(CC) $(INCLUDE) -D_GNU_SOURCE -D_BSD_SOURCE -fpic -g3 -O0 -std=c99 \
-pedantic -c -o $@ $<
clean:
$(RM) test-c-plugin.so