forked from leuchtraketen/fdupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
113 lines (87 loc) · 2.9 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#
# fdupes Makefile
#
#####################################################################
# Standand User Configuration Section #
#####################################################################
#
# PREFIX indicates the base directory used as the basis for the
# determination of the actual installation directories.
# Suggested values are "/usr/local", "/usr", "/pkgs/fdupes-$(VERSION)"
#
PREFIX = /usr/local
#
# Certain platforms do not support long options (command line options).
# To disable long options, uncomment the following line.
#
#OMIT_GETOPT_LONG = -DOMIT_GETOPT_LONG
#
# To use the md5sum program for calculating signatures (instead of the
# built in MD5 message digest routines) uncomment the following
# line (try this if you're having trouble with built in code).
#
#EXTERNAL_MD5 = -DEXTERNAL_MD5=\"md5sum\"
#####################################################################
# Developer Configuration Section #
#####################################################################
#
# VERSION determines the program's version number.
#
include Makefile.inc/VERSION
#
# PROGRAM_NAME determines the installation name and manual page name
#
PROGRAM_NAME=fdupes
#
# BIN_DIR indicates directory where program is to be installed.
# Suggested value is "$(PREFIX)/bin"
#
BIN_DIR = $(PREFIX)/bin
#
# MAN_DIR indicates directory where the fdupes man page is to be
# installed. Suggested value is "$(PREFIX)/man/man1"
#
MAN_BASE_DIR = $(PREFIX)/man
MAN_DIR = $(MAN_BASE_DIR)/man1
MAN_EXT = 1
#
# Required External Tools
#
INSTALL = install # install : UCB/GNU Install compatiable
#INSTALL = ginstall
RM = rm -f
MKDIR = mkdir -p
#MKDIR = mkdirhier
#MKDIR = mkinstalldirs
#
# Make Configuration
#
CC = gcc
COMPILER_OPTIONS = -Wall -O -g
CFLAGS= $(COMPILER_OPTIONS) -I. -D_FILE_OFFSET_BITS=64 -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE) $(OMIT_GETOPT_LONG)
INSTALL_PROGRAM = $(INSTALL) -c -m 0755
INSTALL_DATA = $(INSTALL) -c -m 0644
#
# ADDITIONAL_OBJECTS - some platforms will need additional object files
# to support features not supplied by their vendor. Eg: GNU getopt()
#
#ADDITIONAL_OBJECTS = getopt.o
OBJECT_FILES = fdupes.o md5/md5.o $(ADDITIONAL_OBJECTS)
#####################################################################
# no need to modify anything beyond this point #
#####################################################################
all: fdupes
fdupes: $(OBJECT_FILES)
$(CC) $(CFLAGS) -o fdupes $(OBJECT_FILES)
installdirs:
test -d $(BIN_DIR) || $(MKDIR) $(BIN_DIR)
test -d $(MAN_DIR) || $(MKDIR) $(MAN_DIR)
install: fdupes installdirs
$(INSTALL_PROGRAM) fdupes $(BIN_DIR)/$(PROGRAM_NAME)
$(INSTALL_DATA) fdupes.1 $(MAN_DIR)/$(PROGRAM_NAME).$(MAN_EXT)
clean:
$(RM) $(OBJECT_FILES)
$(RM) fdupes
$(RM) *~ md5/*~
love:
@echo You\'re not my type. Go find a human partner.