blob: 8ba73595abe8f28a1a08fde7fc5ba81f2e6d527a (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#
# Makefile for gptsync on Unix platforms
#
OBJS = gptsync.o os_unix.o
TARGET = gptsync
CPPFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS = -Wall -Werror
LDFLAGS =
LIBS =
# real making
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
$(OBJS): %.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
# cleanup
clean:
$(RM) *.o *~ *% $(TARGET) .depend
# automatic dependencies
depend: dep
dep:
for i in $(OBJS:.o=.c) ; do $(CC) $(CPPFLAGS) -MM $$i ; done > .depend
ifeq (.depend,$(wildcard .depend))
include .depend
endif
# eof
# install target for anaconda
install: all
mkdir -p $(DESTDIR)/usr/sbin
install -m 755 gptsync $(DESTDIR)/usr/sbin/gptsync
|