File tree Expand file tree Collapse file tree 5 files changed +42
-9
lines changed Expand file tree Collapse file tree 5 files changed +42
-9
lines changed Original file line number Diff line number Diff line change
1
+ # Introduction to C
2
+
3
+ This repository is the workshop materials for the Linux@App Introduction to C
4
+ event.
5
+
6
+ ## Using this Repo
7
+
8
+ This repository is intended to teach the following skills:
9
+
10
+ * Basic C compiler usage
11
+ * Basic C Preprocessor tricks
12
+ * Basic functions
13
+ * Basic structures
14
+ * How to get help with and use the C standard library
15
+
16
+ ## Prerequisites
17
+
18
+ You need a UNIX machine with ` gcc ` and some kind of text editor. Basic programming
19
+ experience in another language is also important.
20
+
21
+ ## Getting started
22
+
23
+ This repository contains a series of makefiles that operate on different files to
24
+ automate compilation. Use these as a reference to learn the various flags that the
25
+ ` gcc ` command accepts.
26
+
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ CC = c99
2
+ CFLAGS = -pedantic -Wall -Wextra -g
3
+
4
+ cond-all : cond.E cond
5
+
6
+ cond.E : cond.c
7
+ $(CC ) $(CFLAGS ) -o cond.E -E cond.c
8
+
9
+ cond : cond.c
10
+ $(CC ) $(CFLAGS ) -o cond cond.c
11
+
12
+ clean :
13
+ rm * .E cond
14
+
15
+
File renamed without changes.
Original file line number Diff line number Diff line change @@ -15,15 +15,7 @@ first.s: first.c
15
15
first.E : first.c
16
16
$(CC ) $(CFLAGS ) -o first.E -E first.c
17
17
18
- cond-all : cond.E cond
19
-
20
- cond.E : cond.c
21
- $(CC ) $(CFLAGS ) -o cond.E -E cond.c
22
-
23
- cond : cond.c
24
- $(CC ) $(CFLAGS ) -o cond cond.c
25
-
26
18
clean :
27
- rm * .o * .s * .E first cond
19
+ rm * .o * .s * .E first
28
20
29
21
You can’t perform that action at this time.
0 commit comments