Skip to content
This repository
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (13 sloc) 0.386 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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
Something went wrong with that request. Please try again.