]> Pileus Git - ~andy/sfvlug/blob - cc/source/makefile
Update C Compiling presentation.
[~andy/sfvlug] / cc / source / makefile
1 CC      = gcc
2 LD      = ld
3 CFLAGS  = -Wall -g -static
4
5 default: hello syscall
6
7 syscall: syscall.c makefile
8         $(CC) $(CFLAGS) -c -o syscall.o syscall.c
9         $(LD) -static -o syscall syscall.o -lc
10
11 hello: %: %.o
12         $(CC) $(CFLAGS) -o $@ $+
13
14 %.o: %.c makefile
15         $(CC) $(CFLAGS) -c -o $@ $<