-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
50 lines (37 loc) · 950 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
CC=gcc
CFLAGS=-Wall
all: hello_world variable_types pass_command_line_options \
functions flow_control loops pointers structures \
dynamically_allocated_arrays file_IO
hello_world: hello_world.c
$(CC) -o $@ $< $(CFLAGS)
variable_types: variable_types.c
$(CC) -o $@ $<
flow_control: flow_control.c
$(CC) -o $@ $< $(CFLAGS)
loops: loops.c
$(CC) -o $@ $< $(CFLAGS)
pointers: pointers.c
$(CC) -o $@ $< $(CFLAGS)
functions: functions.c
$(CC) -o $@ $< $(CFLAGS)
structures: structures.c
$(CC) -o $@ $< $(CFLAGS)
dynamically_allocated_arrays: dynamically_allocated_arrays.c
$(CC) -o $@ $< $(CFLAGS)
pass_command_line_options: pass_command_line_options.c
$(CC) -o $@ $< $(CFLAGS)
file_IO: file_IO.c
$(CC) -o $@ $< $(CFLAGS)
.PHONY: clean
clean:
rm hello_world
rm variable_types
rm pass_command_line_options
rm loops
rm functions
rm flow_control
rm pointers
rm structures
rm dynamically_allocated_arrays
rm file_IO