Add Turbo C makefile
This makefile allows FIGlet to be built out-of-the-box using Turbo C++ 3.0 running maker -f Makefile.tc. To build with Turbo C++ 1.0, rename the file to Makefile and run make.exe. Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
parent
6b41034f2f
commit
eedfd2e55f
42
Makefile.tc
Normal file
42
Makefile.tc
Normal file
@ -0,0 +1,42 @@
|
||||
# Turbo C makefile for figlet
|
||||
# adapted from Makefile for figlet version 2.3.0 (11 Jan 2011)
|
||||
# adapted from Makefile for figlet version 2.2.2 (05 July 2005)
|
||||
# adapted from Makefile for figlet version 2.2 (15 Oct 1996)
|
||||
# Copyright 1993, 1994,1995 Glenn Chappell and Ian Chai
|
||||
# Copyright 1996, 1997, 1998, 1999, 2000, 2001 John Cowan
|
||||
# Copyright 2002 Christiaan Keet
|
||||
# Copyright 2011 Claudio Matsuoka
|
||||
|
||||
# The C compiler and linker to use
|
||||
CC = tcc
|
||||
CFLAGS = -mc -I\tc\include
|
||||
LD = tcc
|
||||
LDFLAGS = -mc -L\tc\lib
|
||||
|
||||
# Use this definition if you can't put things in /usr/local/share/figlet
|
||||
DEFAULTFONTDIR = fonts
|
||||
|
||||
# The filename of the font to be used if no other is specified
|
||||
# (standard.flf is recommended, but any other can be used).
|
||||
# This font file should reside in the directory specified by
|
||||
# DEFAULTFONTDIR.
|
||||
DEFAULTFONTFILE = standard.flf
|
||||
|
||||
##
|
||||
## END OF CONFIGURATION SECTION
|
||||
##
|
||||
|
||||
OBJS = figlet.obj zipio.obj crc.obj inflate.obj getopt.obj
|
||||
BINS = figlet.exe chkfont.exe
|
||||
|
||||
.c.obj:
|
||||
$(CC) -c $(CFLAGS) -DDEFAULTFONTDIR="$(DEFAULTFONTDIR)" \
|
||||
-DDEFAULTFONTFILE="$(DEFAULTFONTFILE)" -o$*.obj $<
|
||||
|
||||
all: $(BINS)
|
||||
|
||||
figlet.exe: $(OBJS)
|
||||
$(LD) $(LDFLAGS) -o$@ $(OBJS)
|
||||
|
||||
chkfont.exe: chkfont.obj
|
||||
$(LD) $(LDFLAGS) -o$@ chkfont.obj
|
Loading…
x
Reference in New Issue
Block a user