From: Nathan Wagner Date: Thu, 4 Jan 2018 16:19:34 +0000 (-0600) Subject: enable building of zpm-shell X-Git-Tag: v0.1.6~118 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=c4b62e2fc6674d790be58f841221de49bdb4d00a enable building of zpm-shell --- diff --git a/.gitignore b/.gitignore index a12496e..cf56615 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ zpm-soneed zpm-hash zpm-stat zpm-findpkg +zpm-shell *.zpm *.db soname diff --git a/Makefile b/Makefile index 09a6e80..7595154 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,10 @@ newdb.c: db.sql xxd -i < $< >> $@ echo ", 0};" >> $@ -lib/sqlite3.o: lib/sqlite3.c lib/config.h +sqlite/sqlite3.o: sqlite/sqlite3.c sqlite/config.h + $(CC) -Wall -std=c99 -Ilib -D_HAVE_SQLITE_CONFIG_H=1 -c -o $@ $< + +sqlite/shell.o: sqlite/shell.c sqlite/config.h $(CC) -Wall -std=c99 -Ilib -D_HAVE_SQLITE_CONFIG_H=1 -c -o $@ $< $(LZMAOBJ): @@ -76,9 +79,13 @@ lib/zpm.o: newdb.c zpm-vercmp: zpm-vercmp.o lib/vercmp.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ +zpm-shell: sqlite/sqlite3.o sqlite/shell.o + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ + libzpm.a: lib/sha256.o lib/db.o lib/compress.o lib/uncompress.o lib/zpm.o \ - lib/sqlite3.o \ + sqlite/sqlite3.o \ lib/vercmp.o \ + lib/sha256.o \ $(LZMAOBJ) ar rcuv $@ $?