wmail: refactored MakePathName: one malloc; one snprintf instead of two memcpys.
[dockapps.git] / wmmemfree / Makefile
blob30b66122299566a01de926110dc65a59fe789b91
1 #Makefile
3 PROG=wmmemfree
4 OBJS=dockapp.o draw.o mem_linux.o options.o wmmemfree.o
6 PREFIX=/usr/local
7 BINDIR=$(PREFIX)/bin
8 MANUALDIR=$(PREFIX)/share/man/man1
9 CC=gcc
10 STRIP=strip
11 FLAGS=-Wall -O2
12 RM=rm -f
13 INST=install
14 MANUAL=$(PROG).1
15 LIBS=-L/usr/X11R6/lib -lX11 -lXext -lXpm
17 all: $(PROG)
19 $(PROG): $(OBJS)
20 $(CC) -o $(PROG) $(OBJS) $(LIBS)
21 $(STRIP) $(PROG)
22 %.o: %.c
23 $(CC) $(FLAGS) -c $< -o $@
24 clean:
25 $(RM) $(OBJS) $(PROG)
26 install: $(PROG)
27 $(INST) -m 755 $(PROG) $(BINDIR)
28 $(INST) -m 644 $(MANUAL) $(MANUALDIR)
29 uninstall:
30 $(RM) $(BINDIR)/$(PROG)
31 $(RM) $(MANUALDIR)/$(MANUAL)
33 dockapp.o: dockapp.c wmmemfree.h options.h draw.h xpm/bg.xpm xpm/on.xpm \
34 xpm/off.xpm xpm/numbers.xpm xpm/panel.xpm
35 draw.o: draw.c dockapp.h draw.h mem_linux.h options.h
36 mem_linux.o: mem_linux.c
37 options.o: options.c wmmemfree.h options.h
38 wmmemfree.o: wmmemfree.c wmmemfree.h dockapp.h draw.h options.h