CC	=	gcc
INCDIR	=	`${GTK_CONFIG} --cflags`
LIBS	=	`${GTK_CONFIG} --libs gthread`
TARGET	=	SambaSentinel
FILES	=	SambaSentinel.c gtk_common.cpp
OBJECTS =	SambaSentinel.o gtk_common.o
SambaSentinel:  $(OBJECTS)
		$(CC) $(INCDIR) $(LIBS) -o $(TARGET) $(OBJECTS)

SambaSentinel.o:SambaSentinel.c
		$(CC) $(INCDIR) -c -o SambaSentinel.o SambaSentinel.c

gtk_common.o:	gtk_common.c
		$(CC) $(INCDIR) -c -o gtk_common.o gtk_common.c

clean:		
		rm -f *.o SambaSentinel *~ core
		rm -f /usr/local/bin/SambaSentinel

install:	SambaSentinel
		cp SambaSentinel /usr/local/bin
		@echo
		@echo SambaSentinel installed in /usr/local/bin
		@echo "Type 'SambaSentinel' to run the program!"


syntax highlighted by Code2HTML, v. 0.9.1