# This is Makefile for TIS 0.5

# You can set CFLAGS to -O if you wanna get optimized compiling.
# BINDIR is the directory where the binary is put into. Note that it is used
# only when you 'make install'.

CC       = gcc
LIBS     = -lX11 -lm
CFLAGS   =
LFLAGS   = -L/usr/X11/lib
BINDIR   = /usr/local/bin

SOURCES = main.c rxbm.c sxbm.c empty.c panel.c menue.c get_string.c\
          load_save.c mesg.c question.c tools.c other.c misc.c lmesg.c\
          region.c effects.c

OBJECTS = main.o rxbm.o sxbm.o empty.o panel.o menue.o get_string.o\
          load_save.o mesg.o question.o tools.o other.o misc.o lmesg.o\
          region.o effects.o

default: all

all:		tis

tis:
		$(CC) $(CFLAGS) -c $(SOURCES)
		$(CC) $(CFLAGS) $(LFLAGS) $(OBJECTS) -o tis $(LIBS)

install:
		cp tis $(BINDIR)/tis

clean:
		rm *.o
