summaryrefslogtreecommitdiff
path: root/34_put_together/Makefile
blob: 9281640d5299d840f7b26b46f7e74ae8ee65fbc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS=-Wall -Werror -std=gnu99 -pedantic -ggdb3
SRCS=$(wildcard *.c)
OBJS=$(patsubst %.c, %.o, $(SRCS))
PROGRAM=count_values

$(PROGRAM): $(OBJS)
	gcc $(CFLAGS) -o $@ $(OBJS)

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

clean:
	rm -f $(OBJS) $(PROGRAM) *~

counts.o: counts.h
outname.o: outname.h
kv.o: kv.h
main.o: kv.h
main.o: outname.h
main.o: counts.h