summaryrefslogtreecommitdiff
path: root/utils/time-sync/Makefile
blob: 14d4802fc40239e30ceffcf27b7c18366f8d951f (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} time-sync

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

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

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