wmcapshare: Use pkg-config instead of deprecated glib-config.
[dockapps.git] / wmWeather / Src / Makefile
blobf09ac460f6418af2e504cc45db67cbd04bbf07ef
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
6 # for linux
7 LIBS = -lXpm -lX11 -lXext
8 # for Solaris
9 # LIBS = -lXpm -lX11 -lXext -lsocket
10 OBJS = wmWeather.o \
11 xutils.o
14 .c.o:
15 $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
18 all: wmWeather.o wmWeather
20 wmWeather.o: wmWeather_master.xpm wmWeather_mask.xbm
21 wmWeather: $(OBJS)
22 $(CC) $(CFLAGS) $(SYSTEM) -o wmWeather $^ $(INCDIR) $(LIBDIR) $(LIBS)
24 clean:
25 for i in $(OBJS) ; do \
26 rm -f $$i; \
27 done
28 rm -f wmWeather
30 install:: wmWeather
31 install -c -s -m 0755 wmWeather $(DESTDIR)/bin
32 install -c -m 0755 GrabWeather $(DESTDIR)/bin
33 install -c -m 0644 wmWeather.1 $(DESTDIR)/man/man1