-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
129 lines (98 loc) · 4.37 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
## -*- Makefile -*-
##
## User: danni
## Time: May 23, 2010 10:40:20 PM
## Makefile created by Sun Studio.
##
## This file is generated automatically.
##
#### Compiler and tool definitions shared by all build targets #####
CC = gcc
BASICOPTS = -g
CFLAGS = $(BASICOPTS)
# Define the target directories.
TARGETDIR_Assignment2=dist/Debug/GNU-Linux-x86
all: $(TARGETDIR_Assignment2)/assignment2
## Target: Assignment2
CPPFLAGS_Assignment2 = \
-I.
OBJS_Assignment2 = \
$(TARGETDIR_Assignment2)/main.o \
$(TARGETDIR_Assignment2)/ui.o \
$(TARGETDIR_Assignment2)/prm.o \
$(TARGETDIR_Assignment2)/freelist.o \
$(TARGETDIR_Assignment2)/disk.o \
$(TARGETDIR_Assignment2)/tests.o \
$(TARGETDIR_Assignment2)/process.o \
$(TARGETDIR_Assignment2)/pcb.o \
$(TARGETDIR_Assignment2)/mm.o \
$(TARGETDIR_Assignment2)/mmu.o \
$(TARGETDIR_Assignment2)/messagequeues.o \
$(TARGETDIR_Assignment2)/hat.o \
$(TARGETDIR_Assignment2)/readerswriters.o \
$(TARGETDIR_Assignment2)/aging.o \
$(TARGETDIR_Assignment2)/ipt.o
SYSLIBS_Assignment2 = -lpthread -lrt
USERLIBS_Assignment2 = $(SYSLIBS_Assignment2)
DEPLIBS_Assignment2 =
LDLIBS_Assignment2 = $(USERLIBS_Assignment2)
# Link or archive
$(TARGETDIR_Assignment2)/assignment2: $(TARGETDIR_Assignment2) $(OBJS_Assignment2) $(DEPLIBS_Assignment2)
$(LINK.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ $(OBJS_Assignment2) $(LDLIBS_Assignment2)
# Compile source files into .o files
$(TARGETDIR_Assignment2)/main.o: $(TARGETDIR_Assignment2) main.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ main.c
$(TARGETDIR_Assignment2)/readerswriters.o: $(TARGETDIR_Assignment2) readerswriters.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ readerswriters.c
$(TARGETDIR_Assignment2)/ui.o: $(TARGETDIR_Assignment2) ui.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ ui.c
$(TARGETDIR_Assignment2)/aging.o: $(TARGETDIR_Assignment2) aging.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ aging.c
$(TARGETDIR_Assignment2)/prm.o: $(TARGETDIR_Assignment2) prm.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ prm.c
$(TARGETDIR_Assignment2)/freelist.o: $(TARGETDIR_Assignment2) freelist.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ freelist.c
$(TARGETDIR_Assignment2)/disk.o: $(TARGETDIR_Assignment2) disk.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ disk.c
$(TARGETDIR_Assignment2)/tests.o: $(TARGETDIR_Assignment2) tests.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ tests.c
$(TARGETDIR_Assignment2)/process.o: $(TARGETDIR_Assignment2) process.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ process.c
$(TARGETDIR_Assignment2)/pcb.o: $(TARGETDIR_Assignment2) pcb.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ pcb.c
$(TARGETDIR_Assignment2)/hat.o: $(TARGETDIR_Assignment2) hat.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ hat.c
$(TARGETDIR_Assignment2)/ipt.o: $(TARGETDIR_Assignment2) ipt.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ ipt.c
$(TARGETDIR_Assignment2)/mm.o: $(TARGETDIR_Assignment2) mm.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ mm.c
$(TARGETDIR_Assignment2)/mmu.o: $(TARGETDIR_Assignment2) mmu.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ mmu.c
$(TARGETDIR_Assignment2)/messagequeues.o: $(TARGETDIR_Assignment2) messagequeues.c
$(COMPILE.c) $(CFLAGS_Assignment2) $(CPPFLAGS_Assignment2) -o $@ messagequeues.c
#### Clean target deletes all generated files ####
clean:
rm -f \
$(TARGETDIR_Assignment2)/Assignment2 \
$(TARGETDIR_Assignment2)/main.o \
$(TARGETDIR_Assignment2)/ui.o \
$(TARGETDIR_Assignment2)/prm.o \
$(TARGETDIR_Assignment2)/freelist.o \
$(TARGETDIR_Assignment2)/disk.o \
$(TARGETDIR_Assignment2)/tests.o \
$(TARGETDIR_Assignment2)/process.o \
$(TARGETDIR_Assignment2)/pcb.o \
$(TARGETDIR_Assignment2)/mm.o \
$(TARGETDIR_Assignment2)/mmu.o \
$(TARGETDIR_Assignment2)/messagequeues.o \
$(TARGETDIR_Assignment2)/hat.o \
$(TARGETDIR_Assignment2)/readerswriters.o \
$(TARGETDIR_Assignment2)/aging.o \
$(TARGETDIR_Assignment2)/ipt.o
rm -f -r $(TARGETDIR_Assignment2)
# Create the target directory (if needed)
$(TARGETDIR_Assignment2):
mkdir -p $(TARGETDIR_Assignment2)
# Enable dependency checking
.KEEP_STATE:
.KEEP_STATE_FILE:.make.state.GNU-amd64-Linux