From 899ac8ed6a0186d5e30ae6e9286b08b4be8c3131 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Thu, 27 Nov 2008 12:52:32 +0100 Subject: - 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. --- include/fusever.h | 25 +++++++++++++++++++++++++ src/Makefile | 24 ++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 include/fusever.h create mode 100644 src/Makefile 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) *~ -- cgit v1.2.3