wmail: define debug macros as empty if debug is not enabled.
[dockapps.git] / wmfortune / Makefile
blob79a07d7373e65244573addae03b50d575e6d2811
1 ### Edit here as you like :)
2 BINDIR = /usr/local/bin
3 ############################
5 DEST = wmfortune
7 # Programs used to move the binary to the proper place.
8 INSTALL = /usr/bin/install
9 INSTALL_PROGRAM = ${INSTALL} -m 755
10 UNINSTALL_PROGRAM = rm -f
12 CC = gcc
13 OPTIMIZE = -O2
14 XLIBDIR = /usr/X11R6/lib
15 XLIB = -ldockapp -lXpm -lXext -lX11
16 OBJ = wmfortune.o
18 $(DEST) : $(OBJ)
19 $(CC) $(OBJ) -L$(XLIBDIR) $(XLIB) -o $(DEST)
21 wmfortune.o: wmfortune.c
22 $(CC) $(OPTIMIZE) $< -c
24 install:
25 $(INSTALL_PROGRAM) ./$(DEST) $(BINDIR)/$(DEST)
27 uninstall:
28 $(UNINSTALL_PROGRAM) $(BINDIR)/$(DEST)
30 clean:
31 rm -rf $(DEST) $(OBJ) *~