Remove trailing whitespace.
[dockapps.git] / wmsun / Makefile
blobc369435ee49e589fa9b966cfec34eebe119b7367
1 CC = gcc
2 CFLAGS = -O2 -Wall
3 PREFIX = /usr/local
4 BINDIR = $(PREFIX)/bin
5 MANDIR = $(PREFIX)/share/man/man1
6 INSTALL = install
8 # If you need to compile on a Linux, dont change anything. If
9 # compiling for Solaris, swap the LIBS below...
11 # For Linux (and other?) Machines...
13 LIBS = -lXpm -lX11 -lXext -lm -ldockapp
15 # For Sun Solaris Machines (I know it compiles on 2.6)...
17 # LIBS = -lXpm -lX11 -lXext -lsocket
19 OBJS = wmsun.o SunRise.o
21 .c.o:
22 $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
24 all: wmsun.o wmsun
26 wmsun.o: wmSun_master.xpm wmSun_mask.xbm
28 wmsun: $(OBJS)
29 $(CC) $(LDFLAGS) -o wmsun $^ $(LIBS)
31 clean:
32 for i in $(OBJS) ; do \
33 rm -f $$i; \
34 done
35 rm -f wmsun
37 install:: wmsun
38 $(INSTALL) -d $(DESTDIR)$(BINDIR)
39 $(INSTALL) wmsun $(DESTDIR)$(BINDIR)
40 $(INSTALL) -d $(DESTDIR)$(MANDIR)
41 $(INSTALL) -m 644 wmsun.1 $(DESTDIR)$(MANDIR)