1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
CC = gcc
# CFLAGS = -O2 -Wall
INCDIR = -I/usr/X11R6/include/X11
DESTDIR= /usr/X11R6
LIBDIR = -L/usr/X11R6/lib
# for linux
LIBS = -lXpm -lX11 -lXext
# for Solaris
# LIBS = -lXpm -lX11 -lXext -lsocket
OBJS = wmSpaceWeather.o \
../wmgeneral/wmgeneral.o
.c.o:
$(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
all: wmSpaceWeather.o wmSpaceWeather
wmSpaceWeather.o: wmSpaceWeather_master.xpm wmSpaceWeather_mask.xbm
wmSpaceWeather: $(OBJS)
$(CC) $(CFLAGS) $(SYSTEM) -o wmSpaceWeather $^ $(INCDIR) $(LIBDIR) $(LIBS)
clean:
for i in $(OBJS) ; do \
rm -f $$i; \
done
rm -f wmSpaceWeather
install:: wmSpaceWeather
install -d $(DESTDIR)/usr/bin
install -d $(DESTDIR)/usr/share/wmspaceweather
install -d $(DESTDIR)/usr/share/man/man1
install -m 0755 wmSpaceWeather $(DESTDIR)/usr/bin
install -m 0755 GetKp $(DESTDIR)/usr/share/wmspaceweather
install -m 0644 wmSpaceWeather.1 $(DESTDIR)/usr/share/man/man1
|