xmem/Makefile
2017-02-26 17:22:13 +00:00

29 lines
777 B
Makefile

CFLAGS += -Wall -I/usr/X11R6/include/
BINDIR=/usr/local/bin
MANDIR=/usr/local/man/man1
LDFLAGS=-L/usr/X11R6/lib -lX11 -lXt -lXaw -lXmu
xmem: xmem.o get_mem.o MemStripChart.o
$(CC) -o xmem xmem.o get_mem.o MemStripChart.o $(LDFLAGS)
xmem.o: xmem.c
$(CC) $(CFLAGS) -c xmem.c
get_mem.o: get_mem.c
$(CC) $(CFLAGS) -c get_mem.c
MemStripChart.o: MemStripChart.c
$(CC) $(CFLAGS) -c MemStripChart.c
clean:
-rm xmem *.o *~
all: xmem
install: all
/usr/bin/install -c -m 0555 xmem $(DESTDIR)$(BINDIR)
/usr/bin/install -c -m 0444 xmem.0 $(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/