Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 197 Bytes
ifeq ($(shell uname -s), Linux)
target = libstack.so
CFLAGS = -fPIC
else
target = libstack.dylib
CFLAGS = -dynamiclib
endif
$(target):
clang $^ -shared $(CFLAGS) -D_GNU_SOURCE -o $@ stack.c