lua-arc4random

Cryptographically secure PRNG for Lua
Log | Files | Refs | README

Makefile (335B)


      1 all: arc4random.so
      2 
      3 include Makefile.mess
      4 
      5 SRCS += src/main.c
      6 
      7 CFLAGS += -Wall -Wno-pointer-sign
      8 CFLAGS += -O2 -fPIC -DNDEBUG
      9 
     10 LDFLAGS += -lm
     11 
     12 OBJS := $(patsubst %.c,%.o,$(SRCS))
     13 
     14 debug: CFLAGS += -ggdb3 -UNDEBUG
     15 debug: all
     16 
     17 arc4random.so: $(OBJS)
     18 	$(CC) -o arc4random.so $(OBJS) $(LDFLAGS)
     19 
     20 clean:
     21 	rm -f arc4random.so
     22 	rm -f $(OBJS)