aboutsummaryrefslogtreecommitdiffstats
path: root/src/sash/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/sash/Makefile')
-rw-r--r--src/sash/Makefile69
1 files changed, 0 insertions, 69 deletions
diff --git a/src/sash/Makefile b/src/sash/Makefile
deleted file mode 100644
index 02a895a..0000000
--- a/src/sash/Makefile
+++ /dev/null
@@ -1,69 +0,0 @@
-#
-# Makefile for sash
-#
-# The HAVE_GZIP definition adds the -gzip and -gunzip commands.
-# The HAVE_LINUX_ATTR definition adds the -chattr and -lsattr commands.
-# The HAVE_LINUX_CHROOT definition adds the -chroot command.
-# The HAVE_LINUX_PIVOT definition adds the -pivot_root command.
-# The HAVE_LINUX_LOSETUP definition adds the -losetup command.
-# The HAVE_LINUX_MOUNT definition makes -mount and -umount work on Linux.
-# The HAVE_BSD_MOUNT definition makes -mount and -umount work on BSD.
-# The MOUNT_TYPE definition sets the default file system type for -mount.
-#
-# Note that the linker may show warnings about 'statically linked
-# programs' requiring getpwnam, getpwuid, getgrnam and getgrgid.
-# This is unavoidable since those routines use dynamic libraries anyway.
-# Sash will still run, but if there are shared library problems then
-# the user might have to be be careful when using the -chown, -chgrp,
-# and -ls commands.
-#
-
-CC=arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb
-
-#HAVE_GZIP = 1
-#HAVE_LINUX_ATTR = 1
-#HAVE_LINUX_CHROOT = 1
-#HAVE_LINUX_LOSETUP = 1
-#HAVE_LINUX_PIVOT = 1
-#HAVE_LINUX_MOUNT = 1
-#HAVE_BSD_MOUNT = 0
-MOUNT_TYPE = '""'
-
-OPT = -O3 -ffreestanding
-
-CFLAGS = $(OPT) -Wall -Wmissing-prototypes \
- -DMOUNT_TYPE=$(MOUNT_TYPE) #\
- -DHAVE_GZIP=$(HAVE_GZIP) \
- -DHAVE_LINUX_ATTR=$(HAVE_LINUX_ATTR) \
- -DHAVE_LINUX_CHROOT=$(HAVE_LINUX_CHROOT) \
- -DHAVE_LINUX_LOSETUP=$(HAVE_LINUX_LOSETUP) \
- -DHAVE_LINUX_PIVOT=$(HAVE_LINUX_PIVOT) \
- -DHAVE_LINUX_MOUNT=$(HAVE_LINUX_MOUNT) \
- -DHAVE_BSD_MOUNT=$(HAVE_BSD_MOUNT) \
-
-#LDFLAGS = -static
-#LIBS = -lz
-
-
-DESTDIR =
-BINDIR = /bin
-MANDIR = /usr/man
-
-
-#OBJS = sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o \
- cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o utils.o
-OBJS = sash.o cmds.o cmd_ls.o utils.o
-
-
-sash: $(OBJS)
- $(CC) $(LDFLAGS) -o sash $(OBJS) $(LIBS)
- arm-none-eabi-strip sash
-
-clean:
- rm -f $(OBJS) sash
-
-install: sash
- cp sash $(DESTDIR)/$(BINDIR)/sash
- cp sash.1 $(DESTDIR)/$(MANDIR)/man1/sash.1
-
-$(OBJS): sash.h