# 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: 
#   http://www.cdrom.com/pub/infozip/zlib/

USEZ    = -DZLIB_CAPABLE -I/dj2/contrib/zlib/
ZLIB    = /dj2/contrib/zlib/libz.a

# 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

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 *~
