1# Copyright (C) 1991,1992,1993 NEC Corporation. 2# 3# $Id: Makefile.tc,v 2.1 1994/04/19 10:16:16 uchida Exp $ (NEC) 4# 5# Makefile for plain2 1993 by A.Uchida 6# 7# 8BINDIR=/usr/local/bin 9LIBDIR=/usr/local/lib/plain2 10 11SHELL=/bin/sh 12 13DEFINES=-DKANJI -DPICTURE 14 15#CC=gcc 16#CFLAGS= -g ${DEFINES} -DBSD -DDEBUG 17#CFLAGS= -g ${DEFINES} -DDEBUG 18#CFLAGS= -O ${DEFINES} -DBSD -DDEBUG 19CC=tcc 20CFLAGS=-ml -c -N -DDEBUG -I. -I$(INCDIR) 21 22SRCS=plain2.c readfile.c analyze.c miscutil.c\ 23 section.c example.c list.c plaintxt.c table.c spacing.c\ 24 headfoot.c hint.c picture.c justify.c ftitle.c\ 25 roffout.c texout.c title.c output.c renumout.c macro.c 26OBJS_NOKANJI=plain2.obj readfile.obj miscutil.obj\ 27 section.obj example.obj list.obj plaintxt.obj spacing.obj\ 28 headfoot.obj hint.obj justify.obj\ 29 texout.obj output.obj renumout.obj macro.obj 30# 31# Following files contain Kanji characters(8bit) in EUC code. 32# 33OBJS_KANJI=roffout.obj analyze.obj table.obj title.obj picture.obj ftitle.obj 34 35HDRS=plain2.h table.h picture.h kanji.h 36LIBS= 37LDFLAGS= 38 39plain2.exe: $(OBJS_NOKANJI) $(OBJS_KANJI) 40 tlink @plain2tc.lnk 41 42plain2: ${OBJS_NOKANJI} ${OBJS_KANJI} 43 ${CC} ${CFLAGS} ${LDFLAGS} -o plain2 ${OBJS_NOKANJI} ${OBJS_KANJI} ${LIBES} 44 45lint: 46 lint ${DEFINES} ${SRCS} > error.LINT 2>&1 47 48TAGS: ${SRCS} 49 etags ${SRCS} 50 51install: 52 install -s plain2 ${BINDIR} 53 cp ../lib/*.p2 ${LIBDIR} 54 55clean: 56 rm -f plain2 *.obj asccvt x.c error.LINT 57 58wc: 59 @cstep ${HDRS} ${SRCS} 60 61depend: 62 makemake -f Makefile ${HDRS} ${SRCS} 63 64asccvt: asccvt.c 65 cc -o asccvt asccvt.c 66 67${OBJS_NOKANJI}: 68 69${OBJS_KANJI}: 70 71#${OBJS_KANJI}: asccvt 72# asccvt < $< > x.c 73# cc -c ${CFLAGS} x.c 74# @rm -f x.c 75# mv x.obj $@ 76 77#.SUFFIXES: .c .obj .h 78.c.obj: 79 $(CC) $(CFLAGS) $< 80 81# DO NOT DELETE THIS LINE -- makemake depend uses it 82 83plain2.obj: plain2.h macro.h 84readfile.obj: plain2.h kanji.h 85analyze.obj: plain2.h picture.h kanji.h 86miscutil.obj: plain2.h kanji.h 87section.obj: plain2.h macro.h 88example.obj: plain2.h 89list.obj: plain2.h 90plaintxt.obj: plain2.h 91table.obj: plain2.h table.h kanji.h 92spacing.obj: plain2.h 93headfoot.obj: plain2.h 94hint.obj: plain2.h 95picture.obj: plain2.h kanji.h picture.h 96justify.obj: plain2.h 97ftitle.obj: plain2.h 98roffout.obj: plain2.h picture.h table.h macro.h 99texout.obj: plain2.h picture.h table.h macro.h 100title.obj: plain2.h 101output.obj: plain2.h picture.h macro.h 102renumout.obj: plain2.h 103macro.obj: plain2.h macro.h 104