diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-07-04 15:30:25 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-07-04 15:30:25 +0200 |
commit | 3ece061e72bc8cf0675e30e5c255bef6207329c5 (patch) | |
tree | f5c2ef5c8eb0451ada1e331ecebd32871c8b3fc0 | |
parent | 2da0a0ea488c460d716d1d1b475730f54d4ddf96 (diff) | |
download | xdu-3ece061e72bc8cf0675e30e5c255bef6207329c5.tar.gz xdu-3ece061e72bc8cf0675e30e5c255bef6207329c5.tar.xz xdu-3ece061e72bc8cf0675e30e5c255bef6207329c5.zip |
add Makefile
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3423a23 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +ALL=xdu +OBJS=xdu.o xwin.o + +CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wno-unused-parameter +LDLIBS=-lXt -lXaw -lX11 + +DESTDIR= +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man + +all: $(ALL) + +xdu: $(OBJS) + +clean: FRC + rm -f $(ALL) $(OBJS) + +install: FRC all + mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 + install -m0755 $(ALL) $(DESTDIR)$(BINDIR) + install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1 + +FRC: |