Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 386 Bytes
CC=gcc
CFLAGS= -O3 -funroll-loops -fomit-frame-pointer -fno-stack-protector -Wall
LDFLAGS = -lpthread -ldl
OBJS = rand.o snowflake.o
LIB_CFLAGS = -D__CRACK_LIB__ -fPIC
LIB_LDFLAGS = -shared -Wl,-soname,$@.so.1
all: snowflake
snowflake: $(OBJS)
$(CC) -o ../release/$@.so $^ $(LIB_LDFLAGS)
%.o : %.c
$(CC) $(LIB_CFLAGS) $(CFLAGS) -c $<
clean:
rm -f *.o ../release/snowflake.so