bch
/
xmem
1
0
Fork 0
xmem/Makefile

46 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

PROG= xmem
2019-01-11 21:53:40 +00:00
VERSION= 1.27
LDFLAGS+= -L/usr/X11R6/lib -L/usr/local/lib/ -lX11 -lXt -lXaw -lXmu
LDFLAGS+= -lkvm
2018-12-26 18:46:04 +00:00
CFLAGS+= -Wall -I/usr/X11R6/include/ -I/usr/local/include/
OBJECTS= xmem.o MemStripChart.o get_mem.o
2018-12-26 18:46:04 +00:00
all: xmem
xmem.full:
@echo "full not supported yet"
2018-12-26 18:46:04 +00:00
xmem.debug:
@echo "debug not supported yet"
2017-02-19 10:44:11 +00:00
xmem: $(OBJECTS)
$(CC) -o xmem $(OBJECTS) $(LDFLAGS)
2017-02-18 21:03:44 +00:00
%.o: %c
$(CC) $(CFLAGS) -c $<
2017-02-18 21:03:44 +00:00
clean:
-rm -rf $(OBJECTS) $(PROG)
2017-02-18 21:03:44 +00:00
dist:
mkdir -p ${PROG}-${VERSION}
cp *.h *.c Makefile xmem.1 xmem.bit copyright XMem.ad ${PROG}-${VERSION}
tar cfvz ${PROG}-${VERSION}.tar.gz ${PROG}-${VERSION}
rm -rf ${PROG}-${VERSION}
2017-02-18 21:03:44 +00:00
dist-clean:
-rm ${PROG}-${VERSION}.tar.gz
install:
2020-11-16 17:40:32 +00:00
install -d -m 755 ${PREFIX}/bin/
install -c -S -s -o root -g bin -m 755 xmem ${PREFIX}/bin/xmem
install -d -m 755 ${PREFIX}/man/man1/
install -c -o root -g bin -m 644 xmem.1 ${PREFIX}/man/man1/xmem.1
install -d -m 755 ${PREFIX}/lib/X11/app-defaults/
install -c -o root -g bin -m 644 XMem.ad ${PREFIX}/lib/X11/app-defaults/XMem
install -d -m 755 ${PREFIX}/share/${PROG}/
install -c -o root -g bin -m 644 xmem.bit ${PREFIX}/share/${PROG}/xmem.bit
install -c -o root -g bin -m 644 copyright ${PREFIX}/share/${PROG}/copyright
2017-02-18 21:03:44 +00:00
.include <bsd.prog.mk>