summaryrefslogtreecommitdiffstats
path: root/utils/time-sync/Makefile
blob: d58ad3b357191447c2df22205307d21f96cfbef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS = -Wall
SRCS = ipod-scsi.c time-sync.c
OBJS = $(patsubst %.c,%.o,$(SRCS))

all: time-sync

clean:
	rm -f ${OBJS} ipod-time-sync

%.o: %.c
	gcc ${CFLAGS} -c -o $@ $^

time-sync: ${OBJS}
	gcc ${CFLAGS} -lsgutils2 -o $@ $^

install: time-sync
	cp time-sync /usr/local/bin/