updated makefile
This commit is contained in:
parent
f5ebd29a7c
commit
3e0ff42f52
21
Makefile
21
Makefile
@ -1,4 +1,7 @@
|
||||
CFLAGS += -I/usr/X11R6/include/
|
||||
BINDIR=/usr/local/bin
|
||||
MANDIR=/usr/local/man/man1
|
||||
|
||||
xmem: xmem.o get_mem.o MemStripChart.o
|
||||
gcc $(CFLAGS) -o xmem xmem.o get_mem.o MemStripChart.o -L/usr/X11R6/lib -lX11 -lXt -lXaw -lXmu
|
||||
|
||||
@ -14,8 +17,16 @@ MemStripChart.o: MemStripChart.c
|
||||
clean:
|
||||
-rm xmem *.o *~
|
||||
|
||||
install: xmem
|
||||
install -d -m 755 $(DESTDIR)/usr/local/bin/
|
||||
install -d -m 755 $(DESTDIR)/etc/X11/app-defaults/
|
||||
install -m 755 xmem $(DESTDIR)/usr/local/bin/
|
||||
install -m 644 XMem.ad $(DESTDIR)/etc/X11/app-defaults/XMem
|
||||
all: xmem
|
||||
|
||||
install: all
|
||||
/usr/bin/install -c -m 0555 xmem $(DESTDIR)$(BINDIR)
|
||||
/usr/bin/install -c -m 0444 xmem.1 $(DESTDIR)$(MANDIR)
|
||||
/usr/bin/install -c -m 0644 XMem.ad $(DESTDIR)/usr/local/lib/X11/app-defaults/XMem
|
||||
/usr/bin/install -d -m 0755 $(DESTDIR)/usr/local/share/xmem/
|
||||
/usr/bin/install -c -m 0644 xmem.bit $(DESTDIR)/usr/local/share/xmem/
|
||||
#install -d -m 755 /usr/local/bin/
|
||||
#install -d -m 755 /usr/local/lib/X11/app-defaults/
|
||||
#install -m 755 xmem /usr/local/bin/
|
||||
#install -m 644 XMem.ad /usr/local/lib/X11/app-defaults/XMem
|
||||
#install -m 644 xmem.1 /usr/local/man/man1/
|
||||
|
Loading…
Reference in New Issue
Block a user