/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#CC=gcc
#CC=/usr/local/bin/gcc

/* Where to install X-programs? */
XLOCALBIN = /usr/X11R6/bin

/* where to install normal programs */
LOCALBIN = /usr/local/bin

/* Where to install the X man pages? */
XMANDIR = /usr/X11R6/man/man1

/* where to install the normal man pages */
MANDIR = /usr/man/man1

/* where to install the icon */
XICONDIR = /usr/X11R6/include/X11/pixmaps

SRCS1=\
idle_cb.c \
serial.c \
col_pic.c \
col_pic_cb.c \
col_pic_main.c \
various.c \
settings.c

OBJS1=\
idle_cb.o \
serial.o \
col_pic.o \
col_pic_cb.o \
col_pic_main.o \
various.o \
settings.o

# dependencies
idle_cb.o : idle_cb.c col_pic.h col_pic_proto.h
serial.o : serial.c col_pic.h col_pic_proto.h
col_pic.o: col_pic.c col_pic.h col_pic_proto.h
col_pic_cb.o: col_pic_cb.c col_pic.h col_pic_proto.h
col_pic_main.o: col_pic_main.c col_pic.h col_pic_proto.h
settings.o : settings.c col_pic.h col_pic_proto.h
various.o : various.c col_pic.h col_pic_proto.h

PROGRAMS = col_pic

all::  $(PROGRAMS)

XLOCAL_LIBRARIES = -lforms -lm $(XLIB) -lpthread

LOCAL_LIBRARIES =
CCOPTIONS = -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

NormalProgramTarget(col_pic, $(OBJS1), , $(XLOCAL_LIBRARIES), )

install:: 
	InstallProgram(col_pic, $(XLOCALBIN))

install.man::
	InstallManPage(col_pic, $(XMANDIR))

clear::
	rm *.o
#	$(RM) $(PROGRAMS)
