mirror of
https://github.com/iustin/mt-st.git
synced 2026-07-22 07:22:18 +00:00
6fd7c41012
Commit 0ca6864 changed CFLAGS to be taken from the environment, but
without using any default value. This patch restores the old CFLAGS
value as the default one.
33 lines
760 B
Makefile
33 lines
760 B
Makefile
CFLAGS?= -Wall -O2
|
|
SBINDIR= /sbin
|
|
BINDIR= /bin
|
|
USRBINDIR= /usr/bin
|
|
MANDIR= /usr/share/man
|
|
|
|
MTDIR=$(BINDIR)
|
|
|
|
all: mt stinit
|
|
|
|
mt: mt.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o mt mt.c
|
|
|
|
stinit: stinit.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o stinit stinit.c
|
|
|
|
install: mt stinit
|
|
install -s mt $(MTDIR)
|
|
install -c -m 444 mt.1 $(MANDIR)/man1
|
|
(if [ -f $(MANDIR)/man1/mt.1.gz ] ; then \
|
|
rm -f $(MANDIR)/man1/mt.1.gz; gzip $(MANDIR)/man1/mt.1; fi)
|
|
install -s stinit $(SBINDIR)
|
|
install -c -m 444 stinit.8 $(MANDIR)/man8
|
|
(if [ -f $(MANDIR)/man8/stinit.8.gz ] ; then \
|
|
rm -f $(MANDIR)/man8/stinit.8.gz; gzip $(MANDIR)/man8/stinit.8; fi)
|
|
|
|
dist: clean
|
|
(mydir=`basename \`pwd\``;\
|
|
cd .. && tar cvvf - $$mydir | gzip -9 > $${mydir}.tar.gz)
|
|
|
|
clean:
|
|
rm -f *~ \#*\# *.o mt stinit
|