#############################################################################
# Makefile for building x2x
# Generated by tmake at 10:56, 2003/02/04
#     Project: x2x
#    Template: app
#############################################################################

####### Compiler, tools and options

CC	    =	gcc
LINK    =	gcc
CFLAGS	=	-Wall -W -O2 -DNO_DEBUG
CXXFLAGS=	-Wall -W -O2 -DNO_DEBUG
LFLAGS	=	
LIBS	=	-L/usr/X11R6/lib -lX11 -lXtst

####### Files

HEADERS =	format.h
SOURCES =	format.c \
		lawyerese.c \
		x2x.c
OBJECTS =	format.o \
		lawyerese.o \
		x2x.o
TARGET	=	x2x

####### Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS) 
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)

clean:
	-rm -f $(OBJECTS) $(TARGET)
	-rm -f *~ core

####### Compile

format.o: format.c \
		format.h

lawyerese.o: lawyerese.c

x2x.o: x2x.c \
		format.h

