
#
# Makefile for EED-PS/EEDEPSON programs. Turbo C++ 1.0 (and up) tcc is assumed
# available.
#
#					Gershon Elber, Aug. 1990.

# Works only on TC++ 1.0 make and up - swap out make before invoking command.
.SWAP

# Your C compiler and linker
CC = tcc
LNK = tlink

# Include directories other than default ones (for gif_lib.h in this case).
INC = -Ic:\usr\tc\include -Ic:\usr\include
LIB = c:\usr\tc\lib
LLIB = c:\usr\lib

# Non debug flags:
CFLAGS = -c -ml -a- -f -d -w -G -O -r -d -v- -y-
LFLAGS = /x/c
# Debug flags:
# CFLAGS = -c -ml -a- -f -d -w -N -v -y
# LFLAGS = /x/c

#
# Libs to link with
#
LIBS =  $(LLIB)\gif_libl.lib $(LLIB)\misc_lib.lib \
	c:\usr\tc\lib\emu.lib c:\usr\tc\lib\mathl.lib c:\usr\tc\lib\cl.lib

all:	eed-ps.exe eedepson.exe

# The {$< } is also new to TC++ 1.0 make - remove the { } pair if your make
# choke on them (the { } signals batch mode that combines few operation at the
# same time - very nice feature!).
.c.obj:
	$(CC) $(INC) $(CFLAGS) {$< }

EEDPS_OBJS =	eed-ps.obj eelibs1.obj eelibs2.obj eeload.obj \
		eeredraw.obj eestring.obj igraphps.obj eelayer.obj
EEDEPSON_OBJS =	eedepson.obj eelibs1.obj eelibs2.obj eeload.obj \
		eeredraw.obj eestring.obj igraphep.obj virtrstr.obj eelayer.obj


eed-ps.exe:	$(EEDPS_OBJS)
	$(LNK) @&&!
c:\usr\tc\lib\c0l.obj+
$(EEDPS_OBJS)
eed-ps.exe
eed-ps.map
$(LIBS)
!$(LFLAGS)

eedepson.exe:	$(EEDEPSON_OBJS)
	$(LNK) @&&!
c:\usr\tc\lib\c0l.obj+
$(EEDEPSON_OBJS)
eedepson.exe
eedepson.map
$(LIBS)
!$(LFLAGS)

eed-ps.c:	program.h igraph.h eelibs.h eeredraw.h eeload.h
eedepson.c:	program.h igraph.h eelibs.h eeredraw.h eeload.h
eelibs1.c:	program.h eelibs.h eelibsl.h eeredraw.h igraph.h
eelibs2.c:	program.h eelibs.h eelibsl.h eeredraw.h eestring.h igraph.h
eeload.c:	program.h eelibs.h eeredraw.h eeload.h virtrstr.h
eeredraw.c:	program.h igraph.h eeredraw.h eestring.h
eestring.c:	program.h igraph.h eestring.h
igraphep.c:	virtrstr.h program.h igraph.h
igraphps.c:	program.h igraph.h
virtrstr.c:	virtrstr.h
eelayer,c:	program.h eelayer.h




