|
1 # Copyright (c) 2009 Symbian Foundation Ltd |
|
2 # This component and the accompanying materials are made available |
|
3 # under the terms of the License "Eclipse Public License v1.0" |
|
4 # which accompanies this distribution, and is available |
|
5 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
6 # |
|
7 # Initial Contributors: |
|
8 # Symbian Foundation Ltd - initial contribution. |
|
9 # Mike Kinghan, mikek@symbian.org |
|
10 # |
|
11 # Contributors: |
|
12 # |
|
13 # Description: |
|
14 # This is a Linux makefile for the filesystem library. |
|
15 |
|
16 ifdef EPOCROOT |
|
17 include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk |
|
18 else |
|
19 $(error EPOCROOT must be defined as the parent directory of your epoc32 tree) |
|
20 endif |
|
21 |
|
22 cpp_inc_paths = -I include |
|
23 |
|
24 lib = libfilesystem.a |
|
25 |
|
26 CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) |
|
27 |
|
28 srcs = \ |
|
29 source/cluster.cpp \ |
|
30 source/directory.cpp \ |
|
31 source/dirregion.cpp \ |
|
32 source/errorhandler.cpp \ |
|
33 source/fat16bootsector.cpp \ |
|
34 source/fat16filesystem.cpp \ |
|
35 source/fat32bootsector.cpp \ |
|
36 source/fat32filesystem.cpp \ |
|
37 source/fatbasebootsector.cpp \ |
|
38 source/filesysteminterface.cpp \ |
|
39 source/longentry.cpp \ |
|
40 source/longname.cpp \ |
|
41 source/messagehandler.cpp \ |
|
42 source/messageimplementation.cpp \ |
|
43 source/filesystemclass.cpp |
|
44 |
|
45 all: $(lib) |
|
46 |
|
47 .PHONY: all patches remove_patches clean |
|
48 |
|
49 bases = $(basename $(srcs)) |
|
50 |
|
51 objs = $(addsuffix .o,$(bases)) |
|
52 |
|
53 $(lib): $(objs) |
|
54 ar r $@ $(objs) |
|
55 |
|
56 clean: |
|
57 rm -f $(objs) $(lib) |
|
58 |