-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
35 lines (32 loc) · 907 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
CC = g++
CXX_FLAGS = -std=c++11 -w
# gdbµ÷ÊÔÑ¡Ïî -g -rdynamic
BIN = unix-fs
$(BIN): main.o Buffer.o BufferManager.o DeviceDriver.o File.o FileManager.o FileSystem.o INode.o OpenFileManager.o User.o Utility.o
$(CC) -o $@ $^
main.o: main.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
Buffer.o: Buffer.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
BufferManager.o: BufferManager.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
DeviceDriver.o: DeviceDriver.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
File.o: File.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
FileManager.o: FileManager.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
FileSystem.o: FileSystem.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
INode.o: INode.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
OpenFileManager.o: OpenFileManager.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
User.o: User.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
Utility.o: Utility.cpp
$(CC) $(CXX_FLAGS) -c -o $@ $<
.phony:
clean:
rm -f *.o $(BIN)
rm -f *.img