# If you want to use the compressed state files (you do), uncomment
# the following lines, specifing the path to the zlib header file
# and the library.
# The zlib library homepage can be found at: 
#   ftp://ftp.freesoftware.com/pub/infozip/zlib/

USEZ    = -DZLIB_CAPABLE -I/work/djgpp/src/zlib/
ZLIB    = /work/djgpp/src/zlib/libz.a

# if you are compiling under UNIX, change the above lines to 
# reflect the location of zlib.  I use:
#USEZ    = -DZLIB_CAPABLE 
#ZLIB    = -lz

# Compiler flags, if you are using egcs, pgcs, or gpp 2.8.1 use -mpentium
#CFLAGS  = -Wall -g -mpentium -O3 $(USEZ)

# For those people out there with only a 386
CFLAGS =  -O3 $(USEZ)
L       =  $(ZLIB)
CC      = gcc

.c.o:
	$(CC) $(CFLAGS) -c $<

all:    prog

OBJS    = asm.o symbol.o parser.o setparse.o state.o dimage.o

asm.o:  ops.h directive.h symbol.h
symbol.o: symbol.h
setparse.o: symbol.h

prog : $(OBJS)
	$(CC) -o atasm $(OBJS) $(L)
  
clean:  
	rm *.o *~



