-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 776 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CFLAGS = -c -g -ansi -pedantic -Wall -std=gnu99 `pkg-config fuse --cflags --libs`
LDFLAGS = `pkg-config fuse --cflags --libs`
# Uncomment on of the following three lines to compile
#SOURCES= disk_emu.c sfs_api.c sfs_inode.c sfs_dir.c sfs_test0.c sfs_api.h
#SOURCES= disk_emu.c sfs_api.c sfs_inode.c sfs_dir.c sfs_test1.c sfs_api.h
#SOURCES= disk_emu.c sfs_api.c sfs_inode.c sfs_dir.c sfs_test2.c sfs_api.h
SOURCES= disk_emu.c sfs_api.c sfs_inode.c sfs_dir.c fuse_wrap_old.c sfs_api.h
#SOURCES= disk_emu.c sfs_api.c sfs_inode.c sfs_dir.c fuse_wrap_new.c sfs_api.h
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=sfs
all: $(SOURCES) $(HEADERS) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
gcc $(OBJECTS) $(LDFLAGS) -o $@
.c.o:
gcc $(CFLAGS) $< -o $@
clean:
rm -rf *.o *~ $(EXECUTABLE)