Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 942ade9b2da9404305991ea65cdbfee5b4fd42c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
all: a.out

CFLAGS=-I. -g3 -O2 -Djeff=2

a.out: hello.o x.o
	gcc -g -o a.out $?

hello.o: hello.c somehdr.h
	gcc -c $(CFLAGS) hello.c

x.o: x.c
	gcc -c $(CFLAGS) $<

clean:
	rm *.o *.out

Back to the top