5 #####################################################################
6 # Standand User Configuration Section #
7 #####################################################################
10 # PREFIX indicates the base directory used as the basis for the
11 # determination of the actual installation directories.
12 # Suggested values are "/usr/local", "/usr", "/pkgs/fdupes-$(VERSION)"
17 # When compiling for 32-bit systems, FILEOFFSET_64BIT must be enabled
18 # for fdupes to handle files greater than (2<<31)-1 bytes.
20 FILEOFFSET_64BIT = -D_FILE_OFFSET_BITS=64
23 # Certain platforms do not support long options (command line options).
24 # To disable long options, uncomment the following line.
26 #OMIT_GETOPT_LONG = -DOMIT_GETOPT_LONG
28 #####################################################################
29 # Developer Configuration Section #
30 #####################################################################
33 # VERSION determines the program's version number.
35 include Makefile.inc/VERSION
38 # PROGRAM_NAME determines the installation name and manual page name
43 # BIN_DIR indicates directory where program is to be installed.
44 # Suggested value is "$(PREFIX)/bin"
46 BIN_DIR = $(PREFIX)/bin
49 # MAN_DIR indicates directory where the fdupes man page is to be
50 # installed. Suggested value is "$(PREFIX)/man/man1"
52 MAN_BASE_DIR = $(PREFIX)/share/man
53 MAN_DIR = $(MAN_BASE_DIR)/man1
57 # Required External Tools
60 INSTALL = install # install : UCB/GNU Install compatiable
67 #MKDIR = mkinstalldirs
74 COMPILER_OPTIONS = -Wall -O -g
76 CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
78 INSTALL_PROGRAM = $(INSTALL) -c -m 0755
79 INSTALL_DATA = $(INSTALL) -c -m 0644
82 # ADDITIONAL_OBJECTS - some platforms will need additional object files
83 # to support features not supplied by their vendor. Eg: GNU getopt()
85 #ADDITIONAL_OBJECTS = getopt.o
87 OBJECT_FILES = fdupes.o md5/md5.o $(ADDITIONAL_OBJECTS)
89 #####################################################################
90 # no need to modify anything beyond this point #
91 #####################################################################
95 fdupes: $(OBJECT_FILES)
96 $(CC) $(CFLAGS) $(LDFLAGS) -o fdupes $(OBJECT_FILES)
99 test -d $(DESTDIR)$(BIN_DIR) || $(MKDIR) $(DESTDIR)$(BIN_DIR)
100 test -d $(DESTDIR)$(MAN_DIR) || $(MKDIR) $(DESTDIR)$(MAN_DIR)
102 install: fdupes installdirs
103 $(INSTALL_PROGRAM) fdupes $(DESTDIR)$(BIN_DIR)/$(PROGRAM_NAME)
104 $(INSTALL_DATA) fdupes.1 $(DESTDIR)$(MAN_DIR)/$(PROGRAM_NAME).$(MAN_EXT)
107 $(RM) $(OBJECT_FILES)
112 @echo You\'re not my type. Go find a human partner.