You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
450 B
Makefile
24 lines
450 B
Makefile
CFLAGS=-Wall -O3
|
|
PROGRAMS=simple_pointer adv_pointer char_pointer pointer_func array_pointer
|
|
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
simple_pointer:
|
|
gcc -o simple_pointer $(CFLAGS) simple_pointer.c
|
|
|
|
adv_pointer:
|
|
gcc -o adv_pointer $(CFLAGS) adv_pointer.c
|
|
|
|
char_pointer:
|
|
gcc -o char_pointer $(CFLAGS) char_pointer.c
|
|
|
|
pointer_func:
|
|
gcc -o pointer_func $(CFLAGS) pointer_func.c
|
|
|
|
array_pointer:
|
|
gcc -o array_pointer -Wall -O1 array_pointer.c
|
|
|
|
clean:
|
|
rm -f $(PROGRAMS)
|