Add missing libraries to examples' Makefiles
[dockapps.git] / wmspaceweather / wmSpaceWeather / Makefile
bloba4ed61d7a805ec7aa5cce55a93ca94cf24c1f200
1 CC = gcc
2 CFLAGS = -O2 -Wall
3 INCDIR = -I/usr/X11R6/include/X11
4 DESTDIR= /usr/X11R6
5 LIBDIR = -L/usr/X11R6/lib
6 # for linux
7 LIBS = -lXpm -lX11 -lXext -ldockapp
8 # for Solaris
9 # LIBS = -lXpm -lX11 -lXext -lsocket
10 OBJS = wmSpaceWeather.o
13 .c.o:
14 $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
17 all: wmSpaceWeather.o wmSpaceWeather
19 wmSpaceWeather.o: wmSpaceWeather_master.xpm wmSpaceWeather_mask.xbm
20 wmSpaceWeather: $(OBJS)
21 $(CC) $(COPTS) $(SYSTEM) -o wmSpaceWeather $^ $(INCDIR) $(LIBDIR) $(LIBS)
23 clean:
24 for i in $(OBJS) ; do \
25 rm -f $$i; \
26 done
27 rm -f wmSpaceWeather
29 install:: wmSpaceWeather
30 install -s -m 0755 wmSpaceWeather $(DESTDIR)/bin
31 install -m 0755 GetKp $(DESTDIR)/bin
32 install -m 0644 wmSpaceWeather.1 $(DESTDIR)/man/man1