回答編集履歴

1

makeファイルを更新

2020/12/22 10:52

投稿

akiruno-oneone
akiruno-oneone

スコア815

test CHANGED
@@ -8,8 +8,44 @@
8
8
 
9
9
  ```text
10
10
 
11
+ all: encryption
12
+
13
+
14
+
11
15
  clean:
12
16
 
13
- rm -f *.o *.exe encryption
17
+ rm -f *.o *.exe encryption
18
+
19
+
20
+
21
+ encryption: encryption.o get_opt_for_encryption.o get_opt_for_encryption2.o has_error_for_encryption.o
22
+
23
+ gcc -o $@ $< get_opt_for_encryption2.o has_error_for_encryption.o
24
+
25
+
26
+
27
+ encryption.o: encryption.c
28
+
29
+ gcc -c -o $@ $<
30
+
31
+
32
+
33
+ get_opt_for_encryption.o: get_opt_for_encryption.c
34
+
35
+ gcc -c -o $@ $<
36
+
37
+
38
+
39
+ has_error_for_encryption2.o: has_error_for_encryption2.c
40
+
41
+ gcc -c -o $@ $<
42
+
43
+
44
+
45
+ has_error_for_encryption.o: has_error_for_encryption.c
46
+
47
+ gcc -c -o $@ $<
48
+
49
+
14
50
 
15
51
  ```