2009-01-06 06:10:52 +00:00
|
|
|
|
|
|
|
CC=g++
|
|
|
|
CFLAGS=-c $(shell pkg-config fuse --cflags)
|
|
|
|
LDFLAGS=$(shell pkg-config fuse --libs)
|
2009-01-23 20:35:09 +00:00
|
|
|
SOURCES=main.cpp File.cpp Disk.cpp DiskCopy42.cpp UniversalDiskImage.cpp profuse_dirent.cpp profuse_file.cpp profuse_stat.cpp profuse_xattr.cpp
|
2009-01-06 06:10:52 +00:00
|
|
|
OBJECTS=$(SOURCES:.cpp=.o)
|
|
|
|
EXECUTABLE=profuse
|
|
|
|
|
|
|
|
all: $(SOURCES) $(EXECUTABLE)
|
|
|
|
|
|
|
|
$(EXECUTABLE): $(OBJECTS)
|
|
|
|
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
2009-01-09 21:57:02 +00:00
|
|
|
|
|
|
|
UniversalDiskImage.o: UniversalDiskImage.cpp UniversalDiskImage.h
|
|
|
|
|
|
|
|
DiskCopy42.o: DiskCopy42.cpp DiskCopy42.h
|
|
|
|
|
|
|
|
File.o: File.cpp File.h
|
|
|
|
|
|
|
|
Disk.o: Disk.cpp Disk.h File.h DiskCopy42.h UniversalDiskImage.h
|
|
|
|
|
2009-01-23 20:35:09 +00:00
|
|
|
main.o: main.cpp Disk.h File.h profuse.h
|
|
|
|
|
|
|
|
profuse_dirent.o: profuse_dirent.cpp profuse.h
|
|
|
|
|
|
|
|
profuse_file.o: profuse_file.cpp profuse.h
|
|
|
|
|
|
|
|
profuse_stat.o: profuse_stat.cpp profuse.h
|
|
|
|
|
|
|
|
profuse_xattr.o: profuse_xattr.cpp profuse.h
|