#
# /emx/src/emximp/makefile
#
# Copyright (c) 1992-1994 by Eberhard Mattes
#
# This file is part of emximp.
#
# emximp is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# emximp is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with emximp; see the file COPYING.  If not, write to the
# Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#

.SUFFIXES: .c .o

BIN=c:\emx\bin\ #
INC=..\include\ #
L=c:/emx/lib/
I=c:/emx/include/
S=$(I)sys/

OMFLIB=$(L)omflib.a
MODDEF=$(L)moddef.a

CC=gcc
CFLAGS=-O -Wall -I../include

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

default:	all
all:		emximp
emximp:		$(BIN)emximp.exe

emximp.o: emximp.c $(INC)defs.h $(S)omflib.h $(S)moddef.h

$(BIN)emximp.exe: emximp.o $(OMFLIB) $(MODDEF)
	gcc -o $(BIN)emximp.exe -s emximp.o -lomflib -lmoddef

clean:
	-del *.o

realclean: clean
	-del $(BIN)emximp.exe

# End of /emx/src/emximp/makefile
