-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
30 lines (21 loc) · 888 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
27
28
29
30
CFLAGS += -Wall -Wextra -Werror -Os
APPCFLAGS = $(CFLAGS) -Wno-unused-parameter
all: dmapprint test
test: testapp
@ ./testapp
checkcodes: checkapp
@echo "iTunes: "
curl --silent --header "Viewer-Only-Client: 1" http://127.0.0.1:3689/content-codes | ./checkapp | LC_ALL=C sort
@echo "\niPhoto (note: remaps containers): "
curl --silent --header "Viewer-Only-Client: 1" http://127.0.0.1:8770/content-codes | ./checkapp | LC_ALL=C sort
dmap_parser.o: dmap_parser.c dmap_parser.h Makefile
$(CC) $(CFLAGS) -c dmap_parser.c -o $@
testapp: dmap_parser.o test.c
$(CC) $(APPCFLAGS) -o testapp dmap_parser.o test.c
checkapp: dmap_parser.o checkcodes.c
$(CC) $(APPCFLAGS) -o checkapp dmap_parser.o checkcodes.c
dmapprint: dmap_parser.o dmapprint.c
$(CC) $(APPCFLAGS) -o dmapprint dmap_parser.o dmapprint.c
clean:
rm -f *.o checkapp testapp dmapprint
.PHONY: checkcodes clean test