wmacpi: Respect CFLAGS and LDFLAGS.
[dockapps.git] / wmCalClock / Src / Makefile
blobfecc1f93928f1ce5a4a1b6c286b47baf5b68911c
1 CC = gcc
2 CFLAGS = -O2 -Wall
3 INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
4 DESTDIR= /usr/X11R6
5 LIBDIR = -L/usr/X11R6/lib
7 # for Linux
8 LIBS = -lXpm -lX11 -lXext
10 # for Solaris
11 # LIBS = -lXpm -lX11 -lXext -lsocket -lnsl
13 OBJS = wmCalClock.o \
14 xutils.o
17 .c.o:
18 $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
21 all: wmCalClock.o wmCalClock
23 wmCalClock.o: wmCalClock_master.xpm wmCalClock_mask.xbm
24 wmCalClock: $(OBJS)
25 $(CC) $(COPTS) $(SYSTEM) -o wmCalClock $^ $(INCDIR) $(LIBDIR) $(LIBS)
27 clean:
28 for i in $(OBJS) ; do \
29 rm -f $$i; \
30 done
31 rm -f wmCalClock
33 install:: wmCalClock
34 install -c -s -m 0755 wmCalClock $(DESTDIR)/bin
35 install -c -m 0644 wmCalClock.1 $(DESTDIR)/man/man1