#   DJGPP makefile for Jptui

FLAGS = -Wall -O3 -D__JPTUI__ -D__TUIMAKER__

OBJS =	\
	ButtonsBox.o \
	Callback.o \
    cursor.o   \
    debug.o    \
	errors.o   \
	filebox.o  \
	files.o    \
	InputBox.o \
	jpdata.o   \
	keyboard.o \
	MessageBox.o   \
	mouse.o    \
	msgbox.o   \
	OkCancelBox.o	\
	screen.o   \
	shortcut.o \
	sound.o    \
	spchars.o  \
	strings.o  \
	tapplica.o \
	tchkbox.o  \
	tcombbox.o \
	tdecedzn.o \
	tedzone.o  \
	tfilelb.o  \
	tframe.o   \
	tgauge.o   \
	tgroup.o   \
	thelptz.o  \
	thelpwnd.o \
	tintedzn.o \
	tlabel.o   \
	tlist.o    \
	tlistbox.o \
	tmenu.o    \
	tmenubar.o \
	tobject.o  \
	tpushbut.o \
	trdiobut.o \
	trdiogrp.o \
	tscrbar.o  \
	tsmplist.o \
	ttab.o     \
	ttabgrp.o  \
	ttextzn.o  \
	twindow.o  \
	vocab.o    \
	windows.o

all : libjptui.a

libjptui.a : $(OBJS)
	ar rs libjptui.a $(OBJS)

%.o : %.cpp
	gcc $(FLAGS) -c $< -o $@

clean :
	del *.o
	del *.d
	del *.a
	del jptui.h
	del jptui.dat

DEPS := $(wildcard *.d)
ifneq ($(DEPS),)
include $(DEPS)
endif
