lua-symmetric

Symmetric crypto for Lua
Log | Files | Refs

Makefile (399B)


      1 all: symmetric.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 CFLAGS += `pkg-config --cflags libsodium`
     10 
     11 LDFLAGS += `pkg-config --libs libsodium`
     12 
     13 OBJS := $(patsubst %.c,%.o,$(SRCS))
     14 
     15 debug: CFLAGS += -ggdb3 -UNDEBUG
     16 debug: all
     17 
     18 symmetric.so: $(OBJS)
     19 	$(CC) -o symmetric.so $(OBJS) $(LDFLAGS)
     20 
     21 clean:
     22 	rm -f symmetric.so
     23 	rm -f $(OBJS)