2017-02-18 16:03:44 -05:00
|
|
|
CFLAGS += -I/usr/X11R6/include/
|
2017-02-19 05:44:11 -05:00
|
|
|
BINDIR=/usr/local/bin
|
|
|
|
MANDIR=/usr/local/man/man1
|
|
|
|
|
2017-02-18 16:03:44 -05:00
|
|
|
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
|
|
|
|
|
|
|
|
xmem.o: xmem.c
|
|
|
|
gcc $(CFLAGS) -c xmem.c
|
|
|
|
|
|
|
|
get_mem.o: get_mem.c
|
|
|
|
gcc $(CFLAGS) -c get_mem.c
|
|
|
|
|
|
|
|
MemStripChart.o: MemStripChart.c
|
|
|
|
gcc $(CFLAGS) -c MemStripChart.c
|
|
|
|
|
|
|
|
clean:
|
2017-02-18 16:13:09 -05:00
|
|
|
-rm xmem *.o *~
|
2017-02-18 16:03:44 -05:00
|
|
|
|
2017-02-19 05:44:11 -05:00
|
|
|
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/
|