# PROM Emulator Loader program
# (C) Copyright Mika Iisakkila 1991
#
# All rights reserved
#
# $Id: makefile 0.7 92/01/12 14:39:54 ROOT_DOS Exp $
#
# $Log:	makefile $
# Revision 0.7  92/01/12  14:39:54  ROOT_DOS
# Final compiler flags
# 
# Revision 0.6  91/11/16  16:12:03  ROOT_DOS
# Target 'install' added
# 
# Revision 0.5  91/09/21  01:39:54  ROOT_DOS
# Compiler changed to bccx
# 
# Revision 0.4  91/07/24  14:35:16  ROOT_DOS
# hex.c (hex input file format) added
# 
# Revision 0.3  91/07/22  14:41:35  ROOT_DOS
# Working version
# 
# Revision 0.2  91/07/19  11:26:42  ROOT_DOS
# Target 'co' added
# 
# Revision 0.1  91/07/19  00:35:49  ROOT_DOS
# Initial test version
# 
# 

#CFLAGS=-K -G -O -Z -w -v -DDEBUG
CFLAGS=-K -G -O -Z -w
CC=tcc
HFILES=emu.h makefile

all: emu.exe

emu.exe: emu.obj load.obj hex.obj
	$(CC) $(CFLAGS) emu.obj load.obj hex.obj

emu.obj: emu.c $(HFILES)
	$(CC) $(CFLAGS) -c emu.c

load.obj: load.c $(HFILES)
	$(CC) $(CFLAGS) -c load.c

hex.obj: hex.c $(HFILES)
	$(CC) $(CFLAGS) -c hex.c

clean:
	del *.obj
	del *.tds

co:
	co -u emu.c emu.h load.c hex.c

install: emu.exe
	mv emu.exe d:\util
