#   Project:     soma - stefan's own mail application 
#   File:        Makefile for soma
#   Description: for use with gnu-make
#   Created:     02.12.1995
#   Changed:     $Date: 1996/02/23 11:29:07 $
#   Author:      Stefan Khnel <kuehnel@scoop.mst.uni-hannover.de>
#   Copyright:   (C) 1995 by Stefan Khnel
#
#   ---------------------------------------------------------------------------#
#   RCS Informationen:
#
#	$Id: Makefile,v 1.8 1996/02/23 11:29:07 kuehnel Exp kuehnel $
#	$Author: kuehnel $
#	$Log: Makefile,v $
#	Revision 1.8  1996/02/23 11:29:07  kuehnel
#	Neues Ziel: smtp_send.
#
#	Revision 1.7  1996/02/04 21:54:19  kuehnel
#	folder.c in die Liste der Objekte aufgenommen.
#
#	Revision 1.6  1996/01/17 21:29:29  kuehnel
#	Pfad -L/usr/lib fhrte dazu, da aufgrund unterschiedlicher
#	Library-Versionen nicht mehr gelinkt werden konnte.
#
# Revision 1.5  1995/12/18  10:14:53  kuehnel
# "msg_box.o" zur Liste der Objekt-Dateien zugefgt.
#
# Revision 1.4  1995/12/18  09:14:03  kuehnel
# Flag -lfl entfernt. wird nicht mehr bentigt.
#
# Revision 1.3  1995/12/17  19:41:36  kuehnel
# Makefile jetzt mit Kommentar. Rules fr testmail entfernt.
#
# 	$Date: 1996/02/23 11:29:07 $
#
#   ---------------------------------------------------------------------------
#


OBJS = getmail.o somastr.o view.o compose.o options.o fileop.o global.o \
send.o msg_box.o folder.o folder_edit.o folder_menu.o
CFLAGS = -Wall -O2
CC = gcc
LIBFLAGS = -L/usr/X11R6/lib -L/usr/openwin/lib -lxview -lolgx -lXext -lX11
BINDIR = /usr/bin/X11

all: soma smtp_send

soma: machine.h $(OBJS) main.o 
	$(CC) $(CFLAGS) $(OBJS) main.o -o $@ $(LIBFLAGS)
	
smtp_send: machine.h smtp_send.o global.o send.o fileop.o somastr.o folder.o
	$(CC) $(CFLAGS) smtp_send.o global.o send.o fileop.o somastr.o folder.o -o $@ 

clean:
	rm *.o soma machine.h

machine.h:
	configure

config:	
	configure

install: soma
	cp ./soma $(BINDIR); chgrp mail $(BINDIR)/soma; chmod g+s $(BINDIR)/soma 

TAGS:	*.c *.h
	etags *.c *.h





