xmem/Makefile

22 lines
569 B
Makefile
Raw Normal View History

2017-02-18 16:03:44 -05:00
CFLAGS += -I/usr/X11R6/include/
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:
-rm xmem *.o
install: xmem
2017-02-18 16:05:45 -05:00
install -d -m 755 $(DESTDIR)/usr/local/bin/
2017-02-18 16:03:44 -05:00
install -d -m 755 $(DESTDIR)/etc/X11/app-defaults/
2017-02-18 16:05:45 -05:00
install -m 755 xmem $(DESTDIR)/usr/local/bin/
2017-02-18 16:03:44 -05:00
install -m 644 XMem.ad $(DESTDIR)/etc/X11/app-defaults/XMem