new: first database functions
This commit is contained in:
6
Makefile
6
Makefile
@ -8,8 +8,8 @@ PO_DIRS = $(wildcard locale/*/*)
|
||||
SRCS = $(wildcard src/*.c) $(wildcard src/*/*.c)
|
||||
OBJS = $(patsubst src/%.c,dist/%.o,$(SRCS))
|
||||
HDRS = $(wildcard include/*.h)
|
||||
CFLAGS = -O3 -march=native -fstack-protector-strong -fcf-protection=full -fstack-clash-protection
|
||||
LIBS = -larchive -linih -lgpgme
|
||||
CFLAGS = -O3 -fstack-protector-strong -fcf-protection=full -fstack-clash-protection
|
||||
LIBS = -lpthread -larchive -linih -lgpgme -lsqlite3
|
||||
|
||||
DEBUG = 0
|
||||
VERSION = 24.00
|
||||
@ -17,7 +17,6 @@ VERSION = 24.00
|
||||
all: dist/libmp.so $(PO_OUTS)
|
||||
|
||||
dist/libmp.so: $(OBJS)
|
||||
mkdir -p dist
|
||||
$(CC) -shared -o $@ $^ $(LIBS) $(CFLAGS)
|
||||
|
||||
dist/%.o: src/%.c
|
||||
@ -25,6 +24,7 @@ dist/%.o: src/%.c
|
||||
mkdir -p dist/mptp
|
||||
mkdir -p dist/pool
|
||||
mkdir -p dist/package
|
||||
mkdir -p dist/database
|
||||
$(CC) -c -Wall -fPIC -o $@ $^ $(LIBS) $(CFLAGS) -DLM_VERSION=\"${VERSION}\" -DLM_DEBUG=${DEBUG}
|
||||
|
||||
locale/%.mo: locale/%.po
|
||||
|
Reference in New Issue
Block a user