summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-11 08:06:11 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-11 08:06:11 +0200
commit745588d87d439a2c9ff5acc5cc3dc4a68db57cf9 (patch)
treebf937191b819910f856520241fa4619273e6bd8e /Makefile
parentd937bf0d32fc77b60d796faa8baa0b84c77db00b (diff)
downloadpgfuse-745588d87d439a2c9ff5acc5cc3dc4a68db57cf9.tar.gz
pgfuse-745588d87d439a2c9ff5acc5cc3dc4a68db57cf9.tar.bz2
no hash structure, using the array with a prime
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 3 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index fcb6876..a68c31b 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 hash.o testhash testhash.o
+ rm -f pgfuse pgfuse.o pgsql.o
test: pgfuse
psql < test.sql
@@ -28,20 +28,11 @@ test: pgfuse
-ls -al mnt/dir/dir2
fusermount -u mnt
-pgfuse: pgfuse.o pgsql.o hash.o
- gcc -o pgfuse $(LDFLAGS) pgfuse.o pgsql.o hash.o
+pgfuse: pgfuse.o pgsql.o
+ gcc -o pgfuse $(LDFLAGS) pgfuse.o pgsql.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