diff options
author | Ulf Lilleengen <lulf@pvv.ntnu.no> | 2008-11-27 12:52:32 +0100 |
---|---|---|
committer | Ulf Lilleengen <lulf@pvv.ntnu.no> | 2008-11-27 12:52:32 +0100 |
commit | 899ac8ed6a0186d5e30ae6e9286b08b4be8c3131 (patch) | |
tree | 0dfc243fa00b5d48e67ba7aa5c99a3604c654105 | |
parent | 7c6e44bf251073515b7a621ddb47ef5ee80ca7c0 (diff) |
- Use a fusever header to define fuse version across all files.
- Add a Makefile in the src directory and use the main makefile as a toplevel
make.
-rw-r--r-- | include/fusever.h | 25 | ||||
-rw-r--r-- | src/Makefile | 24 |
2 files changed, 49 insertions, 0 deletions
diff --git a/include/fusever.h b/include/fusever.h new file mode 100644 index 0000000..b0cf083 --- /dev/null +++ b/include/fusever.h @@ -0,0 +1,25 @@ +/* + * Musicfs is a FUSE module implementing a media filesystem in userland. + * Copyright (C) 2008 Ulf Lilleengen, Kjetil Ørbekk + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version + * 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * A copy of the license can typically be found in COPYING + */ + +#ifndef _FUSEVER_H_ +#define _FUSEVER_H_ + +#define FUSE_USE_VERSION 26 +#endif /* !_FUSEVER_H_ */ diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..bcba591 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,24 @@ +CFLAGS = -Wall -std=c99 -D_BSD_SOURCE -g \ + `pkg-config fuse --cflags` `pkg-config taglib --cflags` \ + -DDEBUGGING -DSQLITE_THREADED + +INCLUDES= -I/usr/local/include -I../include +LDFLAGS= -L/usr/local/lib +LIBS= -lsqlite3 -ltag_c -lpthread `pkg-config fuse --libs` +CC= gcc +LD= gcc +SRCS= mfs_cleanup_db.c mfs_subr.c mfs_vnops.c musicfs.c +OBJS= $(SRCS:.c=.o) + +PROGRAM = musicfs + +all: $(PROGRAM) + +.c.o: + $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ + +$(PROGRAM): $(OBJS) + $(LD) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) + +clean: + rm -f $(PROGRAM) $(OBJS) *~ |