summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-10 17:36:18 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-10 17:36:18 +0200
commitd937bf0d32fc77b60d796faa8baa0b84c77db00b (patch)
tree385c6df7fe6cfe7d5eb443edad4870d177385812 /Makefile
parent87119b0e4438487c374941d0a555421ddb48a1ff (diff)
downloadpgfuse-d937bf0d32fc77b60d796faa8baa0b84c77db00b.tar.gz
pgfuse-d937bf0d32fc77b60d796faa8baa0b84c77db00b.tar.bz2
some starts with hash
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a68c31b..fcb6876 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ CFLAGS += `pkg-config fuse --cflags`
LDFLAGS = `pkg-config fuse --libs` -lpq
clean:
- rm -f pgfuse pgfuse.o pgsql.o
+ rm -f pgfuse pgfuse.o pgsql.o hash.o testhash testhash.o
test: pgfuse
psql < test.sql
@@ -28,11 +28,20 @@ test: pgfuse
-ls -al mnt/dir/dir2
fusermount -u mnt
-pgfuse: pgfuse.o pgsql.o
- gcc -o pgfuse $(LDFLAGS) pgfuse.o pgsql.o
+pgfuse: pgfuse.o pgsql.o hash.o
+ gcc -o pgfuse $(LDFLAGS) pgfuse.o pgsql.o hash.o
pgfuse.o: pgfuse.c pgsql.h
gcc -c $(CFLAGS) -o pgfuse.o pgfuse.c
pgsql.o: pgsql.c pgsql.h
gcc -c $(CFLAGS) -o pgsql.o pgsql.c
+
+hash.o: hash.c hash.h
+ gcc -c $(CFLAGS) -o hash.o hash.c
+
+testhash: testhash.o hash.o
+ gcc -o testhash $(LDFLAGS) testhash.o hash.o
+
+testhash.o: testhash.c hash.h
+ gcc -c $(CFLAGS) -o testhash.o testhash.c