#
# FILE:
# Makefile
#
# FUNCTION:
# Hand-crafted makefile for the gupits demo
#
# HISTORY:
# Created by Linas Vepstas January 2002
#

INCLUDES = -I/usr/lib/gnome-libs/include	\
	-I/usr/lib/glib/include

LIBS=   -lgtkextra      \
        -lgtk           \
        -lgdk           \
        -lglib          \
        -lesd           \
        -lpopt          \

CFLAGS= `gtk-config gtk --cflags`


OBJS= gtkstripchartcursor.o \
      gtkstripchartlimit.o \
      gtkstripchartstrip.o \
      gtkstripchart.o

INCS= gtkstripchartcursor.h \
      gtkstripchartlimit.h \
      gtkstripchartstrip.h \
      gtkstripchart.h


EXES = teststrip testpipe

all: tests 

tests: ${EXES}

teststrip: teststrip.o ${OBJS}
testpipe: testpipe.o ${OBJS}

teststrip.o: ${INCS}
testpipe.o: ${INCS}

gtkstripchart.o: ${INCS}
gtkstripchartcursor.o: gtkstripchartcursor.h
gtkstripchartlimit.o: gtkstripchartlimit.h
gtkstripchartstrip.o: ${INCS}

.o:
	cc -g -o $* $^ ${LIBS}
#	cc -pg -o $* $^ ${LIBS}

.c.o:
	cc -c -g -Wall -O2 $< ${CFLAGS} ${INCLUDES}
#	cc -c -pg -fprofile-arcs -Wall -O2 $< ${CFLAGS} ${INCLUDES}


clean:
	rm -f *.o *.da ${EXES}

