]> git.pld-linux.org Git - projects/setup.git/blobdiff - Makefile
Always enable largefile.
[projects/setup.git] / Makefile
index 295c7b47edc4a2dbb5f9d3e2e527d79aaaeb8f1b..01ee6442b1984f2bac68de9bd53a52b9b44357b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
 # Very basic and very simple Makefile. Maybe it would be nice to make it
 # in ac/am.... but I'm too lazy ;)
 #
-VERSION                = 2.5.6
+VERSION                = 2.8.5
 
 CC             = gcc
-OPT_FLAGS      = -O2 -g
-CFLAGS         = $(OPT_FLAGS) -Wall
+OPT_FLAGS      = -Wformat -Werror=format-security -fvar-tracking-assignments -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector -O2 -g2 -Wall
+CFLAGS         = $(OPT_FLAGS) -Wall -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
 INSTALL                = install
 SBINDIR                = /sbin
 ETCDIR         = /etc
@@ -14,16 +14,16 @@ ENVDIR              = $(ETCDIR)/env.d
 SHRCDIR                = $(ETCDIR)/shrc.d
 #########################################
 
-BIN_FILES      = joinpasswd update-fstab postshell
+BIN_FILES      = joinpasswd update-fstab postshell delpasswd
 DOCS           = ChangeLog
-ETC_FILES      = filesystems fstab group host.conf hosts motd mtab \
+ETC_FILES      = filesystems fstab group host.conf hosts motd \
            netgroup passwd profile protocols resolv.conf securetty \
            services shells suid_profile
 PROFILE_FILES  = tmp-dir.csh tmp-dir.sh
 ENV_FILES      = EDITOR HISTFILESIZE HOME_ETC MAILCHECK MAILPATH \
            NNTPSERVER ORGANIZATION TMOUT VISUAL
 
-SOURCES                = joinpasswd.c update-fstab.c postshell.c
+SOURCES                = joinpasswd.c update-fstab.c postshell.c delpasswd.c
 CLEAN          = $(BIN_FILES) *.o core *.tar.gz *.tar.bz2 *~ *.swp
 
 #########################################
@@ -32,6 +32,7 @@ all: $(BIN_FILES)
 joinpasswd: joinpasswd.o
 update-fstab: update-fstab.o
 postshell: postshell.o
+delpasswd: delpasswd.o
 
 .c.o:
        $(CC) $(CPPFLAGS) $(CFLAGS) $(CDEFS) -c $< -o $@
@@ -48,11 +49,11 @@ install:
        $(INSTALL) -d  $(DESTDIR)/$(ENVDIR)
        $(INSTALL) $(BIN_FILES) $(DESTDIR)/$(SBINDIR)
        cd etc; $(INSTALL) $(ETC_FILES) $(DESTDIR)/$(ETCDIR)
+       ln -sf /proc/self/mounts $(DESTDIR)/$(ETCDIR)/mtab
        cd etc/profile.d; $(INSTALL) $(PROFILE_FILES) $(DESTDIR)/$(PROFILEDIR)
        cd etc/env.d; $(INSTALL) $(ENV_FILES) $(DESTDIR)/$(ENVDIR)
 
-dist: clean
-       
+dist: changelog clean
        $(INSTALL) -d setup-$(VERSION)/etc/profile.d
        $(INSTALL) -d setup-$(VERSION)/etc/env.d
        $(INSTALL) -d setup-$(VERSION)/etc/shrc.d
@@ -69,6 +70,9 @@ dist: clean
        tar -cvjf setup-$(VERSION).tar.bz2 setup-$(VERSION)
        rm -rf setup-$(VERSION)
 
+changelog:
+       ./changelog.sh
+
 tag:
        cvs tag setup-$(shell echo $(VERSION) | tr . _)
 
This page took 0.029668 seconds and 4 git commands to generate.