# Copyright information can be found in file "Copyright"

INC_DIRS = -I../h

# GFLAG = -g
DEFS = -DSYS_V=$(SYS_V)
CFLAGS = $(INC_DIRS) $(GFLAG) $(DEFS)

SRC1 =	dirs.c errors.c exf.c files.c files2.c hash.c nybbles.c str.c getopt.c readtfm.c malloc.c\
	rcssup.c texdim.c
OBJ1 =	dirs.o errors.o exf.o files.o files2.o hash.o nybbles.o str.o getopt.o readtfm.o malloc.o\
	rcssup.o texdim.o

#if (COND_X_WINDOWS == 0)
SRC = $(SRC1)
OBJ = $(OBJ1)
#else
SRC = $(SRC1) xdump.c
OBJ = $(OBJ1) xdump.o
#endif

all:	libics.a

install:
relink:

libics.a:	$(OBJ)
	@rm -f $@ lint
	ar r $@ $(OBJ)
	ranlib $@

lint:	$(SRC)
	@rm -f $@
	lint $(INC_DIRS) $(SRC) > $@

clean::
	$(RM) libics.a

print:
	$(PRINT_COMMAND) Makefile $(SRC)

depend:	$(SRC) $(HFILES)
	maketd -mIMakefile $(INC_DIRS) $(SRC)

# DO NOT DELETE THIS LINE - make depend DEPENDS ON IT
A=../h

errors.o: errors.c

exf.o: $A/extfil.h exf.c

files.o: $A/extfil.h files.c

files2.o: files2.c

hash.o: hash.c

nybbles.o: nybbles.c

str.o: str.c

getopt.o: getopt.c

readtfm.o: $A/extfil.h $A/tfm.h readtfm.c

malloc.o: malloc.c

texdim.o: texdim.c

# *** Do not add anything here - It will go away. ***
