xmem/Makefile

29 lines
777 B
Makefile
Raw Normal View History

2017-02-26 11:02:24 -05:00
CFLAGS += -Wall -I/usr/X11R6/include/
2017-02-19 05:44:11 -05:00
BINDIR=/usr/local/bin
MANDIR=/usr/local/man/man1
2017-02-26 11:02:24 -05:00
LDFLAGS=-L/usr/X11R6/lib -lX11 -lXt -lXaw -lXmu
2017-02-19 05:44:11 -05:00
2017-02-18 16:03:44 -05:00
xmem: xmem.o get_mem.o MemStripChart.o
2017-02-26 11:02:24 -05:00
$(CC) -o xmem xmem.o get_mem.o MemStripChart.o $(LDFLAGS)
2017-02-18 16:03:44 -05:00
xmem.o: xmem.c
2017-02-26 11:02:24 -05:00
$(CC) $(CFLAGS) -c xmem.c
2017-02-18 16:03:44 -05:00
get_mem.o: get_mem.c
2017-02-26 11:02:24 -05:00
$(CC) $(CFLAGS) -c get_mem.c
2017-02-18 16:03:44 -05:00
MemStripChart.o: MemStripChart.c
2017-02-26 11:02:24 -05:00
$(CC) $(CFLAGS) -c MemStripChart.c
2017-02-18 16:03:44 -05:00
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)
2017-02-26 12:22:13 -05:00
/usr/bin/install -c -m 0444 xmem.0 $(DESTDIR)$(MANDIR)
2017-02-19 05:44:11 -05:00
/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/