wmshutdown: Destroy dialog window before shutting down. This is especially useful...
[dockapps.git] / wmsupermon / Makefile
blobc3e4c3c4d306fb0a9a36831a55f0cb8b3e40954a
1 LIBDIR = -L/usr/X11R6/lib
2 LIBS = -lXpm -lXext -lX11 -lm
3 OBJS = wmsupermon.o dockapp.o stat_dev.o panes.o expr.o
4 FLAGS= -O2 -Wall
5 #FLAGS= -g -Wall -O0
7 all: wmsupermon
9 wmsupermon: $(OBJS)
10 $(CC) -o wmsupermon $^ $(LIBDIR) $(LIBS) $(LFLAGS)
12 clean:
13 $(RM) *.o wmsupermon core* *.core expr.c tags
15 tarball:
16 grep -F '"$(subst wmsupermon-,,$(notdir $(CURDIR)))"' wmsupermon.c > /dev/null
17 grep -F '"$(shell date +%Y/%m/%d)"' wmsupermon.c > /dev/null
18 cd .. && tar cvzf $(notdir $(CURDIR)).tar.gz $(notdir $(CURDIR)) \
19 --exclude '*.o' --exclude tags --exclude '*core*' --exclude expr.c \
20 --exclude wmsupermon --exclude '.*.swp'
22 .c.o:
23 $(CC) -c $(FLAGS) $< -o $*.o
25 # generated with gcc -MM *.c
26 dockapp.o: dockapp.c dockapp.h
27 expr.o: expr.c expr.h
28 panes.o: panes.c expr.h panes.h stat_dev.h
29 stat_dev.o: stat_dev.c expr.h stat_dev.h
30 wmsupermon.o: wmsupermon.c dockapp.h wmsupermon-master.xpm expr.h stat_dev.h panes.h