-
Notifications
You must be signed in to change notification settings - Fork 25
/
makefile
26 lines (19 loc) · 849 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
#
# makefile for image and color utilities C library
#
#
CC = gcc -std=gnu99
FLAGS = -Wall
INCLUDES = -lm
imageDriver: imageUtils.o colorUtils.o imageDriver.c
$(CC) $(FLAGS) $(INCLUDES) imageUtils.o colorUtils.o imageDriver.c -o imageDriver $(INCLUDES)
imageUtils.o: imageUtils.c imageUtils.h
$(CC) $(FLAGS) $(INCLUDES) -c imageUtils.c -o imageUtils.o
colorUtilsTesterCmocka: colorUtils.o colorUtilsTesterCmocka.c
$(CC) $(FLAGS) colorUtils.o colorUtilsTesterCmocka.c -o colorUtilsTesterCmocka $(INCLUDES) -l cmocka
colorUtilsTesterCmockaWorkaround: colorUtils.o colorUtilsTesterCmocka.c
$(CC) $(FLAGS) -I./include colorUtils.o colorUtilsTesterCmocka.c -o colorUtilsTesterCmocka $(INCLUDES) -L. -l :libcmocka-static.a
colorUtils.o: colorUtils.c colorUtils.h
$(CC) $(FLAGS) $(INCLUDES) -c colorUtils.c -o colorUtils.o
clean:
rm -f *~ *.o