forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
database: pull out database code into a new module
We're going to reuse the database controllers for the accounting plugin
- Loading branch information
1 parent
03c950b
commit ce12d2b
Showing
37 changed files
with
1,478 additions
and
1,292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /usr/bin/make | ||
|
||
DB_LIB_SRC := \ | ||
db/bindings.c \ | ||
db/exec.c \ | ||
db/utils.c | ||
|
||
DB_DRIVERS := \ | ||
db/db_postgres.c \ | ||
db/db_sqlite3.c | ||
|
||
DB_SRC := $(DB_LIB_SRC) $(DB_DRIVERS) | ||
DB_HEADERS := $(DB_LIB_SRC:.c=.h) db/common.h | ||
|
||
DB_OBJS := $(DB_LIB_SRC:.c=.o) $(DB_DRIVERS:.c=.o) | ||
$(DB_OBJS): $(DB_HEADERS) | ||
|
||
# Make sure these depend on everything. | ||
ALL_C_SOURCES += $(DB_SRC) | ||
ALL_C_HEADERS += $(DB_HEADERS) | ||
|
||
# DB_SQL_FILES is the list of database files | ||
DB_SQL_FILES := db/exec.c |
Oops, something went wrong.