# Terminality - a portable terminal handling library # Copyright (C) 1998-2002, Emil Mikulic. # This is LGPL - look at COPYING.LIB # # $Id: Makefile.dj,v 1.8 2002/07/26 01:39:40 darkmoon Exp $ # # Makefile for the pdcurses frontend of the library (DJGPP version) # Author: Michal Safranek CC = gcc CPP = gpp CFLAGS = -g -I. -Wall -DUSE_NCURSES LIBS = -lpdcur .SUFFIXES: .c .cpp .h all: libtn.a demo/demo dlgc/dlgc libtn.a: tn.o extra.o list.o form.o textbox.o menu.o hmenu.o checkbox.o radio.o libtn.a: listing.o textarea.o xmem.o keyhndl.o register.o elements.o pbar.o libtn.a: lclhndl.o textview.o ar cru libtn.a $^ demo/demo: libtn.a demo/demo.cpp demo/myscheme.h cd demo make.exe -f Makefile.dj cd .. dlgc/dlgc: libtn.a dlgc/dlgc.cpp cd dlgc make.exe -f Makefile.dj cd .. .c.o: $(CC) $(CFLAGS) -c $< .cpp.o: $(CPP) $(CFLAGS) -c $< INCLUDES=tn.h colors.h dscheme.h keyhndl.h gui.h register.h elements.h extra.o: extra.c extra.h $(INCLUDES) list.o: list.c list.h tn.o: tn.c tn.h colors.h dscheme.h xmem.o: xmem.h xmem.c keyhndl.o: keyhndl.c keyhndl.h list.h tn.h register.o: register.c register.h elements.o: elements.h elements.cpp register.h list.h register.h form.o: form.cpp $(INCLUDES) textbox.o: textbox.cpp $(INCLUDES) textarea.o: textarea.cpp $(INCLUDES) menu.o: menu.cpp $(INCLUDES) hmenu.o: hmenu.cpp $(INCLUDES) checkbox.o: checkbox.cpp $(INCLUDES) radio.o: radio.cpp $(INCLUDES) listing.o: listing.cpp $(INCLUDES) pbar.o: pbar.cpp $(INCLUDES) clean: rm -f *~ *.o libtn.a core cd demo make -f Makefile.dj clean cd ../dlgc make -f Makefile.dj clean cd ..